CREATE TABLE ABNORMAL_IN (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ABNORMAL_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
TYPE VARCHAR2(30 CHAR) VISIBLE,
IS_SYNSAP NUMBER(1,0) VISIBLE DEFAULT 0  ,
IS_SYNSAP_SUCCESS NUMBER(1,0) VISIBLE DEFAULT 0  ,
IN_LOCATION VARCHAR2(30 CHAR) VISIBLE,
STATE NUMBER(1,0) VISIBLE DEFAULT 0  ,
NOTE VARCHAR2(255 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(30 CHAR) VISIBLE,
APPLICATION_DATE TIMESTAMP(6) VISIBLE,
TYPE_ID VARCHAR2(30 CHAR) VISIBLE,
INNER_ORDER VARCHAR2(50 CHAR) VISIBLE,
INNER_ORDER_NOTE VARCHAR2(255 CHAR) VISIBLE,
MOVE_TYPE VARCHAR2(30 CHAR) VISIBLE,
ORGID VARCHAR2(30 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
DEPT VARCHAR2(34 CHAR) VISIBLE,
DEPT_ID VARCHAR2(30 BYTE) VISIBLE,
SAP_ORDER VARCHAR2(60 BYTE) VISIBLE,
VOUCHER_NO VARCHAR2(60 BYTE) VISIBLE,
SAP_ERROR_MSG VARCHAR2(500 CHAR) VISIBLE,
IN_AREA VARCHAR2(36 BYTE) VISIBLE,
SAP_IN_AREA VARCHAR2(100 BYTE) VISIBLE,
CRM_ORDER VARCHAR2(50 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
SPLIT_ORDER VARCHAR2(30 CHAR) VISIBLE,
RECEIPT_NO VARCHAR2(20 CHAR) VISIBLE,
POST_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
PACKAGE_SPEC_ID VARCHAR2(50 BYTE) VISIBLE,
AUDIT_STATUS NUMBER(1,0) VISIBLE,
AUDIT_USRE_ID VARCHAR2(50 BYTE) VISIBLE,
AUDIT_USER_NAME VARCHAR2(100 BYTE) VISIBLE,
AUDIT_DATE TIMESTAMP(7) VISIBLE,
AUDIT_REMARK VARCHAR2(3000 BYTE) VISIBLE
);

COMMENT ON COLUMN ABNORMAL_IN.ID IS '主键id';

COMMENT ON COLUMN ABNORMAL_IN.ABNORMAL_NO IS '非正常入库单号';

COMMENT ON COLUMN ABNORMAL_IN.TYPE IS '????';

COMMENT ON COLUMN ABNORMAL_IN.IS_SYNSAP IS '?????sap 0?1?';

COMMENT ON COLUMN ABNORMAL_IN.IS_SYNSAP_SUCCESS IS '??????0?1?';

COMMENT ON COLUMN ABNORMAL_IN.IN_LOCATION IS '????';

COMMENT ON COLUMN ABNORMAL_IN.STATE IS '?? 0???1????2??,3:????';

COMMENT ON COLUMN ABNORMAL_IN.NOTE IS '??';

COMMENT ON COLUMN ABNORMAL_IN.CREATE_NAME IS '???';

COMMENT ON COLUMN ABNORMAL_IN.APPLICATION_DATE IS '????';

COMMENT ON COLUMN ABNORMAL_IN.TYPE_ID IS '????id';

COMMENT ON COLUMN ABNORMAL_IN.INNER_ORDER IS '?????';

COMMENT ON COLUMN ABNORMAL_IN.INNER_ORDER_NOTE IS '???????';

COMMENT ON COLUMN ABNORMAL_IN.MOVE_TYPE IS '????';

COMMENT ON COLUMN ABNORMAL_IN.SAP_ORDER IS 'SAP????';

COMMENT ON COLUMN ABNORMAL_IN.VOUCHER_NO IS '?????';

COMMENT ON COLUMN ABNORMAL_IN.SAP_ERROR_MSG IS '????????????';

COMMENT ON COLUMN ABNORMAL_IN.IN_AREA IS '????';

COMMENT ON COLUMN ABNORMAL_IN.SAP_IN_AREA IS 'sap????';

COMMENT ON COLUMN ABNORMAL_IN.CRM_ORDER IS 'crm??';

COMMENT ON COLUMN ABNORMAL_IN.IS_DEL IS '????';

COMMENT ON COLUMN ABNORMAL_IN.SPLIT_ORDER IS '????';

COMMENT ON COLUMN ABNORMAL_IN.POST_STATUS IS '???? 0???1????2???';

COMMENT ON COLUMN ABNORMAL_IN.PACKAGE_SPEC_ID IS '???ID';

COMMENT ON COLUMN ABNORMAL_IN.AUDIT_STATUS IS '?????0=????1??????-1?????';

COMMENT ON COLUMN ABNORMAL_IN.AUDIT_USRE_ID IS '???id';

COMMENT ON COLUMN ABNORMAL_IN.AUDIT_USER_NAME IS '?????';

COMMENT ON COLUMN ABNORMAL_IN.AUDIT_DATE IS '????';

COMMENT ON COLUMN ABNORMAL_IN.AUDIT_REMARK IS '????';

COMMENT ON TABLE ABNORMAL_IN IS '//ABNORMAL_IN';

-- ----------------------------
-- Table structure for ABNORMAL_IN_DETAIL
-- ----------------------------
CREATE TABLE ABNORMAL_IN_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ABNORMAL_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_TYPE VARCHAR2(60 CHAR) VISIBLE,
MATERIALS_DES VARCHAR2(255 CHAR) VISIBLE,
UNIT VARCHAR2(30 CHAR) VISIBLE,
QTY NUMBER(15,3) VISIBLE DEFAULT 0  ,
REAL_QTY NUMBER(15,3) VISIBLE DEFAULT 0  ,
STATE NUMBER(1,0) VISIBLE,
PRINT_NUM NUMBER(15,3) VISIBLE DEFAULT 0  ,
ORGID VARCHAR2(60 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
PRICE NUMBER(14,3) VISIBLE DEFAULT 0,
TOTAL_PRICE NUMBER(14,3) VISIBLE DEFAULT 0,
POST_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0,
VOUCHER_NO VARCHAR2(30 CHAR) VISIBLE,
CRM_ORDER VARCHAR2(100 BYTE) VISIBLE,
COUNTRY VARCHAR2(50 BYTE) VISIBLE,
MACHINE_MODEL VARCHAR2(50 BYTE) VISIBLE,
PURCHASE_CONTRACT_NO VARCHAR2(50 BYTE) VISIBLE,
MATERIALS_DES_EN VARCHAR2(100 BYTE) VISIBLE,
MATERIALS_SHORT_NO VARCHAR2(100 BYTE) VISIBLE,
MODEL_CODE VARCHAR2(100 BYTE) VISIBLE
);

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.ID IS '主键id';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.ABNORMAL_NO IS '非正常入库单号';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.MATERIALS_DES IS '????';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.UNIT IS '??';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.QTY IS '????';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.REAL_QTY IS '??????';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.STATE IS '?? 0???1????2??';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.PRINT_NUM IS '???????';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.CREATE_ID IS '???id';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.PRICE IS '??';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.TOTAL_PRICE IS '??';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.POST_AMOUNT IS '?????';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.VOUCHER_NO IS '????';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.CRM_ORDER IS '??????';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.COUNTRY IS '??';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.MACHINE_MODEL IS '??';

COMMENT ON COLUMN ABNORMAL_IN_DETAIL.PURCHASE_CONTRACT_NO IS '?????';

COMMENT ON TABLE ABNORMAL_IN_DETAIL IS '//ABNORMAL_IN_DETAIL';

-- ----------------------------
-- Table structure for ABNORMAL_OUT
-- ----------------------------
CREATE TABLE ABNORMAL_OUT (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ABNORMAL_NO VARCHAR2(30 BYTE) VISIBLE,
REASON_ID VARCHAR2(10 BYTE) VISIBLE,
REASON_NAME VARCHAR2(50 CHAR) VISIBLE,
OUT_LOCATION VARCHAR2(30 BYTE) VISIBLE,
LOGISTICS VARCHAR2(30 CHAR) VISIBLE,
LOGISTICS_PERSON VARCHAR2(30 CHAR) VISIBLE,
LOGISTICS_PHONE VARCHAR2(20 BYTE) VISIBLE,
AGENT_NAME VARCHAR2(30 CHAR) VISIBLE,
DELIVERY_TYPE_ID VARCHAR2(20 BYTE) VISIBLE,
DELIVERY_TYPE_NAME VARCHAR2(50 CHAR) VISIBLE,
SETTLE_TYPE_ID VARCHAR2(10 BYTE) VISIBLE,
SETTLE_TYPE_NAME VARCHAR2(50 CHAR) VISIBLE,
RECEIVER_NAME VARCHAR2(30 CHAR) VISIBLE,
RECEIVER_PHONE VARCHAR2(20 BYTE) VISIBLE,
RECEIVER_FAX VARCHAR2(20 BYTE) VISIBLE,
ADDRESS VARCHAR2(100 CHAR) VISIBLE,
APPLICATION_DATE TIMESTAMP(6) VISIBLE,
NOTE VARCHAR2(500 CHAR) VISIBLE,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
CREATE_NAME VARCHAR2(30 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 BYTE) VISIBLE,
TYPE VARCHAR2(200 BYTE) VISIBLE,
TYPE_ID VARCHAR2(30 BYTE) VISIBLE,
INNER_ORDER VARCHAR2(50 CHAR) VISIBLE,
INNER_ORDER_NOTE VARCHAR2(255 CHAR) VISIBLE,
MOVE_TYPE VARCHAR2(30 CHAR) VISIBLE,
IS_SYNSAP NUMBER(1,0) VISIBLE,
IS_SYNSAP_SUCCESS NUMBER(1,0) VISIBLE,
ORGID VARCHAR2(30 CHAR) VISIBLE,
DEPT_ID VARCHAR2(30 BYTE) VISIBLE,
DEPT VARCHAR2(100 BYTE) VISIBLE,
SAP_ORDER VARCHAR2(60 BYTE) VISIBLE,
VOUCHER_NO VARCHAR2(60 BYTE) VISIBLE,
SAP_ERROR_MSG VARCHAR2(500 CHAR) VISIBLE,
OUT_AREA VARCHAR2(36 BYTE) VISIBLE,
SAP_OUT_AREA VARCHAR2(100 BYTE) VISIBLE,
AGENT_ORG_ID VARCHAR2(30 BYTE) VISIBLE,
CRM_ORDER VARCHAR2(50 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
SPLIT_ORDER VARCHAR2(30 CHAR) VISIBLE,
SEND_TYPE_CHILD_ID VARCHAR2(20 BYTE) VISIBLE,
SEND_TYPE_CHILD_NAME VARCHAR2(32 BYTE) VISIBLE,
TOTAL_AMOUNT NUMBER(16,3) VISIBLE,
POST_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
COST_TOTAL NUMBER(16,3) VISIBLE,
GENERAL_LEDGER_CATEGORY VARCHAR2(30 CHAR) VISIBLE,
AUDIT_STATUS NUMBER(1,0) VISIBLE,
AUDIT_USRE_ID VARCHAR2(50 BYTE) VISIBLE,
AUDIT_USER_NAME VARCHAR2(100 BYTE) VISIBLE,
AUDIT_DATE TIMESTAMP(7) VISIBLE,
AUDIT_REMARK VARCHAR2(3000 BYTE) VISIBLE,
ERP_SYNC_STATUS VARCHAR2(1 BYTE) VISIBLE,
ERP_SYNC_DATE DATE VISIBLE
);

COMMENT ON COLUMN ABNORMAL_OUT.ID IS 'ID';

COMMENT ON COLUMN ABNORMAL_OUT.ABNORMAL_NO IS '???????';

COMMENT ON COLUMN ABNORMAL_OUT.REASON_ID IS '????ID';

COMMENT ON COLUMN ABNORMAL_OUT.REASON_NAME IS '??????';

COMMENT ON COLUMN ABNORMAL_OUT.OUT_LOCATION IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.LOGISTICS IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.LOGISTICS_PERSON IS '???';

COMMENT ON COLUMN ABNORMAL_OUT.LOGISTICS_PHONE IS '???????';

COMMENT ON COLUMN ABNORMAL_OUT.AGENT_NAME IS '?????';

COMMENT ON COLUMN ABNORMAL_OUT.DELIVERY_TYPE_ID IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.DELIVERY_TYPE_NAME IS '??????';

COMMENT ON COLUMN ABNORMAL_OUT.SETTLE_TYPE_ID IS '??????';

COMMENT ON COLUMN ABNORMAL_OUT.SETTLE_TYPE_NAME IS '????????';

COMMENT ON COLUMN ABNORMAL_OUT.RECEIVER_NAME IS '???';

COMMENT ON COLUMN ABNORMAL_OUT.RECEIVER_PHONE IS '???????';

COMMENT ON COLUMN ABNORMAL_OUT.RECEIVER_FAX IS '?????';

COMMENT ON COLUMN ABNORMAL_OUT.ADDRESS IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.APPLICATION_DATE IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.NOTE IS '??';

COMMENT ON COLUMN ABNORMAL_OUT.STATUS IS '0:???,1:????,2:???,3:????';

COMMENT ON COLUMN ABNORMAL_OUT.CREATE_NAME IS '?????';

COMMENT ON COLUMN ABNORMAL_OUT.CREATE_ID IS '???ID';

COMMENT ON COLUMN ABNORMAL_OUT.TYPE IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.TYPE_ID IS '????ID';

COMMENT ON COLUMN ABNORMAL_OUT.INNER_ORDER IS '?????';

COMMENT ON COLUMN ABNORMAL_OUT.INNER_ORDER_NOTE IS '???????';

COMMENT ON COLUMN ABNORMAL_OUT.MOVE_TYPE IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.IS_SYNSAP IS '?????sap 0?1?';

COMMENT ON COLUMN ABNORMAL_OUT.IS_SYNSAP_SUCCESS IS '??????0?1?';

COMMENT ON COLUMN ABNORMAL_OUT.SAP_ORDER IS 'SAP????';

COMMENT ON COLUMN ABNORMAL_OUT.VOUCHER_NO IS '?????';

COMMENT ON COLUMN ABNORMAL_OUT.SAP_ERROR_MSG IS '????????????';

COMMENT ON COLUMN ABNORMAL_OUT.OUT_AREA IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.SAP_OUT_AREA IS 'sap????';

COMMENT ON COLUMN ABNORMAL_OUT.AGENT_ORG_ID IS '??orgid';

COMMENT ON COLUMN ABNORMAL_OUT.CRM_ORDER IS 'crm??';

COMMENT ON COLUMN ABNORMAL_OUT.IS_DEL IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.SPLIT_ORDER IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.SEND_TYPE_CHILD_ID IS '????????';

COMMENT ON COLUMN ABNORMAL_OUT.SEND_TYPE_CHILD_NAME IS '????????';

COMMENT ON COLUMN ABNORMAL_OUT.TOTAL_AMOUNT IS '??';

COMMENT ON COLUMN ABNORMAL_OUT.POST_STATUS IS '???? 0???1????2???';

COMMENT ON COLUMN ABNORMAL_OUT.COST_TOTAL IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.GENERAL_LEDGER_CATEGORY IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.AUDIT_STATUS IS '?????0=????1??????-1?????';

COMMENT ON COLUMN ABNORMAL_OUT.AUDIT_USRE_ID IS '???id';

COMMENT ON COLUMN ABNORMAL_OUT.AUDIT_USER_NAME IS '?????';

COMMENT ON COLUMN ABNORMAL_OUT.AUDIT_DATE IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.AUDIT_REMARK IS '????';

COMMENT ON COLUMN ABNORMAL_OUT.ERP_SYNC_STATUS IS 'ERP???? 0-???, 1-???, 2-????';

COMMENT ON COLUMN ABNORMAL_OUT.ERP_SYNC_DATE IS 'ERP????';

COMMENT ON TABLE ABNORMAL_OUT IS '//ABNORMAL_OUT';

-- ----------------------------
-- Table structure for ABNORMAL_OUT_DETAIL
-- ----------------------------
CREATE TABLE ABNORMAL_OUT_DETAIL (
ID VARCHAR2(30 BYTE) VISIBLE,
ABNORMAL_NO VARCHAR2(30 BYTE) VISIBLE,
MATERIALS_NO VARCHAR2(30 BYTE) VISIBLE,
MATERIALS_DES VARCHAR2(200 BYTE) VISIBLE,
MATERIALS_TYPE_ID VARCHAR2(30 BYTE) VISIBLE,
MATERIALS_TYPE VARCHAR2(30 BYTE) VISIBLE,
UNIT VARCHAR2(30 BYTE) VISIBLE,
QTY NUMBER(14,3) VISIBLE,
REAL_QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
CREATOR_PART_ID VARCHAR2(20 BYTE) VISIBLE,
CREATOR_PART_NAME VARCHAR2(20 BYTE) VISIBLE,
STATUS NUMBER(1,0) VISIBLE,
NOTE VARCHAR2(200 CHAR) VISIBLE,
ORGID VARCHAR2(30 CHAR) VISIBLE,
PACK_NUMBER NUMBER(14,3) VISIBLE,
PRICE NUMBER(14,3) VISIBLE,
TOTAL_PRICE NUMBER(16,3) VISIBLE,
POST_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0,
VOUCHER_NO VARCHAR2(30 CHAR) VISIBLE,
COST_PRICE NUMBER(16,3) VISIBLE,
COST_SUBTOTAL NUMBER(16,3) VISIBLE
);

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.ID IS 'ID';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.ABNORMAL_NO IS '??ID';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.MATERIALS_NO IS '????';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.MATERIALS_DES IS '????';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.MATERIALS_TYPE_ID IS '????ID';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.MATERIALS_TYPE IS '??????';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.UNIT IS '??';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.QTY IS '????';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.REAL_QTY IS '??????';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.CREATOR_PART_ID IS '?????ID';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.CREATOR_PART_NAME IS '???????';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.STATUS IS '0:???,1:????,2:???';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.NOTE IS '??';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.PACK_NUMBER IS '????';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.PRICE IS '??';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.TOTAL_PRICE IS '??';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.POST_AMOUNT IS '?????';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.VOUCHER_NO IS '????';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.COST_PRICE IS '????';

COMMENT ON COLUMN ABNORMAL_OUT_DETAIL.COST_SUBTOTAL IS '????';

COMMENT ON TABLE ABNORMAL_OUT_DETAIL IS '//ABNORMAL_OUT_DETAIL';

-- ----------------------------
-- Table structure for ACCOUNT_OVERDUE_CONFIG
-- ----------------------------
CREATE TABLE ACCOUNT_OVERDUE_CONFIG (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
RATING_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CLIENT_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CLIENT_NAME VARCHAR2(100 CHAR) VISIBLE,
ONE_RETURN_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
ONE_ACTUAL_PAYMENT NUMBER(22,3) VISIBLE DEFAULT 0,
ONE_REAL_ACCOUNT NUMBER(22,3) VISIBLE DEFAULT 0,
ONE_ACCOUNT_CONTROL VARCHAR2(30 CHAR) VISIBLE,
TWO_RETURN_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
TWO_ACTUAL_PAYMENT NUMBER(22,3) VISIBLE DEFAULT 0,
TWO_REAL_ACCOUNT NUMBER(22,3) VISIBLE DEFAULT 0,
TWO_ACCOUNT_CONTROL VARCHAR2(30 CHAR) VISIBLE,
THREE_RETURN_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
THREE_ACTUAL_PAYMENT NUMBER(22,3) VISIBLE DEFAULT 0,
THREE_REAL_ACCOUNT NUMBER(22,3) VISIBLE DEFAULT 0,
THREE_ACCOUNT_CONTROL VARCHAR2(30 CHAR) VISIBLE,
SCORE NUMBER(22,3) VISIBLE DEFAULT 0,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
CREATOR_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 CHAR) VISIBLE,
MODIFIER_NAME VARCHAR2(50 CHAR) VISIBLE,
MODIFY_TIME DATE VISIBLE
);

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.ID IS '非业务主键id';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.RATING_ID IS '评级信息id';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.CLIENT_ID IS '客户id';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.CLIENT_NAME IS '????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.ONE_RETURN_TARGET IS '???????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.ONE_ACTUAL_PAYMENT IS '???????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.ONE_REAL_ACCOUNT IS '?????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.ONE_ACCOUNT_CONTROL IS '?????????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.TWO_RETURN_TARGET IS '???????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.TWO_ACTUAL_PAYMENT IS '???????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.TWO_REAL_ACCOUNT IS '?????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.TWO_ACCOUNT_CONTROL IS '?????????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.THREE_RETURN_TARGET IS '???????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.THREE_ACTUAL_PAYMENT IS '???????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.THREE_REAL_ACCOUNT IS '?????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.THREE_ACCOUNT_CONTROL IS '?????????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.SCORE IS '??';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.IS_DEL IS '????(0??1?)';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.CREATOR_ID IS '创建人id';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.CREATOR_NAME IS '创建人姓名';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN ACCOUNT_OVERDUE_CONFIG.MODIFY_TIME IS '????';

COMMENT ON TABLE ACCOUNT_OVERDUE_CONFIG IS '????????';

-- ----------------------------
-- Table structure for AGENT_ALLOT
-- ----------------------------
CREATE TABLE AGENT_ALLOT (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ALLOT_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
BUSINESS_ORDER VARCHAR2(30 CHAR) VISIBLE,
VERIFY_STATE NUMBER(1,0) VISIBLE,
OUT_STATE NUMBER(1,0) VISIBLE,
IN_STATE NUMBER(1,0) VISIBLE,
NOTE VARCHAR2(200 CHAR) VISIBLE,
OUT_AGENT_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
OUT_AGENT_NAME VARCHAR2(30 CHAR) VISIBLE NOT NULL,
OUT_AGENT_CONTACT VARCHAR2(30 CHAR) VISIBLE,
OUT_AGENT_PHONE VARCHAR2(11 CHAR) VISIBLE,
IN_AGENT_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
IN_AGENT_NAME VARCHAR2(30 CHAR) VISIBLE NOT NULL,
IN_AGENT_CONTACT VARCHAR2(30 CHAR) VISIBLE,
IN_AGENT_PHONE VARCHAR2(11 CHAR) VISIBLE,
IN_ADDRESS VARCHAR2(100 CHAR) VISIBLE,
LOGIS_COM VARCHAR2(50 CHAR) VISIBLE,
LOGIS_ORDER VARCHAR2(30 CHAR) VISIBLE,
CARRIER VARCHAR2(30 CHAR) VISIBLE,
CARRIER_PHONE VARCHAR2(11 CHAR) VISIBLE,
DELIVERY_DATE TIMESTAMP(6) VISIBLE,
DEPT_ID VARCHAR2(30 CHAR) VISIBLE,
DEPT_NAME VARCHAR2(30 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
ORGID VARCHAR2(30 CHAR) VISIBLE,
AUDIT_USER_ID VARCHAR2(20 BYTE) VISIBLE,
AUDIT_USER_NAME VARCHAR2(200 CHAR) VISIBLE,
AUDIT_DATE TIMESTAMP(6) VISIBLE,
IN_AREA VARCHAR2(60 BYTE) VISIBLE,
OUT_AREA VARCHAR2(60 BYTE) VISIBLE,
SAP_IN_AREA VARCHAR2(100 BYTE) VISIBLE,
SAP_OUT_AREA VARCHAR2(100 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
IS_SETTLE NUMBER(1,0) VISIBLE DEFAULT 0 ,
SETTLE_ID VARCHAR2(20 BYTE) VISIBLE,
SETTLE_NAME VARCHAR2(50 BYTE) VISIBLE,
SETTLE_TIME DATE VISIBLE,
COST_TOTAL NUMBER(16,3) VISIBLE,
REMARK VARCHAR2(100 CHAR) VISIBLE
);

COMMENT ON COLUMN AGENT_ALLOT.ID IS '唯一标识';

COMMENT ON COLUMN AGENT_ALLOT.ALLOT_ORDER IS '调拨单号';

COMMENT ON COLUMN AGENT_ALLOT.BUSINESS_ORDER IS '????';

COMMENT ON COLUMN AGENT_ALLOT.VERIFY_STATE IS '???? 0?? 1??? 2???? 3???? 4???? 5????';

COMMENT ON COLUMN AGENT_ALLOT.OUT_STATE IS '?????? 0??? 1???? 2???';

COMMENT ON COLUMN AGENT_ALLOT.IN_STATE IS '?????? 0??? 1???? 2???';

COMMENT ON COLUMN AGENT_ALLOT.NOTE IS '??';

COMMENT ON COLUMN AGENT_ALLOT.OUT_AGENT_ID IS '调出代理商id，对应COMPANY_DEALER.PLAT_ORG_ID';

COMMENT ON COLUMN AGENT_ALLOT.OUT_AGENT_NAME IS '调出代理商名称';

COMMENT ON COLUMN AGENT_ALLOT.OUT_AGENT_CONTACT IS '????????';

COMMENT ON COLUMN AGENT_ALLOT.OUT_AGENT_PHONE IS '?????????';

COMMENT ON COLUMN AGENT_ALLOT.IN_AGENT_ID IS '调入代理商id，对应COMPANY_DEALER.PLAT_ORG_ID';

COMMENT ON COLUMN AGENT_ALLOT.IN_AGENT_NAME IS '调入代理商名称';

COMMENT ON COLUMN AGENT_ALLOT.IN_AGENT_CONTACT IS '????????';

COMMENT ON COLUMN AGENT_ALLOT.IN_AGENT_PHONE IS '?????????';

COMMENT ON COLUMN AGENT_ALLOT.IN_ADDRESS IS '????';

COMMENT ON COLUMN AGENT_ALLOT.LOGIS_COM IS '????';

COMMENT ON COLUMN AGENT_ALLOT.LOGIS_ORDER IS '????';

COMMENT ON COLUMN AGENT_ALLOT.CARRIER IS '???';

COMMENT ON COLUMN AGENT_ALLOT.CARRIER_PHONE IS '???????';

COMMENT ON COLUMN AGENT_ALLOT.DELIVERY_DATE IS '????';

COMMENT ON COLUMN AGENT_ALLOT.DEPT_ID IS '?????id';

COMMENT ON COLUMN AGENT_ALLOT.DEPT_NAME IS '???????';

COMMENT ON COLUMN AGENT_ALLOT.CREATE_ID IS '???id';

COMMENT ON COLUMN AGENT_ALLOT.CREATE_NAME IS '?????';

COMMENT ON COLUMN AGENT_ALLOT.CREATE_DATE IS '????';

COMMENT ON COLUMN AGENT_ALLOT.IN_AREA IS '????';

COMMENT ON COLUMN AGENT_ALLOT.OUT_AREA IS '????';

COMMENT ON COLUMN AGENT_ALLOT.SAP_IN_AREA IS 'sap??????';

COMMENT ON COLUMN AGENT_ALLOT.SAP_OUT_AREA IS 'sap??????';

COMMENT ON COLUMN AGENT_ALLOT.IS_DEL IS '????';

COMMENT ON COLUMN AGENT_ALLOT.IS_SETTLE IS '??????0? 1?';

COMMENT ON COLUMN AGENT_ALLOT.SETTLE_ID IS '???ID';

COMMENT ON COLUMN AGENT_ALLOT.SETTLE_NAME IS '?????';

COMMENT ON COLUMN AGENT_ALLOT.SETTLE_TIME IS '????';

COMMENT ON COLUMN AGENT_ALLOT.COST_TOTAL IS '????';

COMMENT ON COLUMN AGENT_ALLOT.REMARK IS '????';

COMMENT ON TABLE AGENT_ALLOT IS '//AGENT_ALLOT';

-- ----------------------------
-- Table structure for AGENT_ALLOT_DETAIL
-- ----------------------------
CREATE TABLE AGENT_ALLOT_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ALLOT_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
BUSINESS_ORDER VARCHAR2(30 CHAR) VISIBLE,
MATERIAL_NO VARCHAR2(30 CHAR) VISIBLE,
MATERIAL_NAME VARCHAR2(255 CHAR) VISIBLE,
MATERIAL_TYPE VARCHAR2(100 CHAR) VISIBLE,
UNIT VARCHAR2(30 CHAR) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE,
IN_AMOUNT NUMBER(14,3) VISIBLE,
OUT_AMOUNT NUMBER(14,3) VISIBLE,
IN_STATE NUMBER(1,0) VISIBLE,
OUT_STATE NUMBER(1,0) VISIBLE,
REF_PRICE NUMBER(16,2) VISIBLE,
REAL_PRICE NUMBER(16,2) VISIBLE,
TOTAL_PRICE NUMBER(16,2) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
ALLOT_ID VARCHAR2(30 CHAR) VISIBLE,
COST_PRICE NUMBER(16,3) VISIBLE,
COST_SUBTOTAL NUMBER(16,3) VISIBLE
);

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.ID IS '唯一标识';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.ALLOT_ORDER IS '调拨单号，对应AGENT_ALLOT.ALLOT_ORDER';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.BUSINESS_ORDER IS '????';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.MATERIAL_NO IS '????';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.MATERIAL_NAME IS '????';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.MATERIAL_TYPE IS '????';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.UNIT IS '????';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.AMOUNT IS '??????';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.IN_AMOUNT IS '?????';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.OUT_AMOUNT IS '?????';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.IN_STATE IS '????  0???1????2???';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.OUT_STATE IS '????  0???1????2???';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.REF_PRICE IS '????';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.REAL_PRICE IS '????';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.TOTAL_PRICE IS '??';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.CREATE_ID IS '???id';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.CREATE_NAME IS '?????';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.CREATE_DATE IS '????';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.ALLOT_ID IS '??id';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.COST_PRICE IS '????';

COMMENT ON COLUMN AGENT_ALLOT_DETAIL.COST_SUBTOTAL IS '????';

COMMENT ON TABLE AGENT_ALLOT_DETAIL IS '//AGENT_ALLOT_DETAIL';

-- ----------------------------
-- Table structure for AGENT_APPLY
-- ----------------------------
CREATE TABLE AGENT_APPLY (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
TITLE VARCHAR2(200 BYTE) VISIBLE NOT NULL,
APPLY_TYPE NUMBER(1,0) VISIBLE NOT NULL,
STATUS NUMBER(1,0) VISIBLE DEFAULT 1  NOT NULL,
APPLY_DESC VARCHAR2(4000 BYTE) VISIBLE NOT NULL,
DELETE_FLAG NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
ORG_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ORG_NAME VARCHAR2(200 BYTE) VISIBLE NOT NULL,
RECEIVE_ORG_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
RECEIVE_ORG_NAME VARCHAR2(200 BYTE) VISIBLE NOT NULL,
FIRST_ADVICE VARCHAR2(2000 BYTE) VISIBLE,
FINAL_ADVICE VARCHAR2(2000 BYTE) VISIBLE,
CREATE_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CREATE_NAME VARCHAR2(50 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE DEFAULT sysdate  NOT NULL,
UPDATE_ID VARCHAR2(30 BYTE) VISIBLE,
UPDATE_NAME VARCHAR2(50 BYTE) VISIBLE,
UPDATE_TIME DATE VISIBLE,
AUDIT_ID VARCHAR2(30 BYTE) VISIBLE,
AUDIT_NAME VARCHAR2(50 BYTE) VISIBLE,
AUDIT_TIME DATE VISIBLE,
DELETE_ID VARCHAR2(30 BYTE) VISIBLE,
DELETE_NAME VARCHAR2(50 BYTE) VISIBLE,
DELETE_TIME DATE VISIBLE,
EXHIBITION_STATUS NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN AGENT_APPLY.ID IS '主键';

COMMENT ON COLUMN AGENT_APPLY.TITLE IS '标题';

COMMENT ON COLUMN AGENT_APPLY.APPLY_TYPE IS '申请类型。1展会申请，2门店申请';

COMMENT ON COLUMN AGENT_APPLY.STATUS IS '状态。1草拟，2待初审，3初审通过，4终审通过，5返回修改，6已完结';

COMMENT ON COLUMN AGENT_APPLY.APPLY_DESC IS '申请描述';

COMMENT ON COLUMN AGENT_APPLY.DELETE_FLAG IS '是否删除。0否1是';

COMMENT ON COLUMN AGENT_APPLY.ORG_ID IS '申请方公司名称';

COMMENT ON COLUMN AGENT_APPLY.RECEIVE_ORG_ID IS '接收方公司名称';

COMMENT ON COLUMN AGENT_APPLY.FIRST_ADVICE IS '????';

COMMENT ON COLUMN AGENT_APPLY.FINAL_ADVICE IS '????';

COMMENT ON COLUMN AGENT_APPLY.CREATE_ID IS '创建人id';

COMMENT ON COLUMN AGENT_APPLY.CREATE_NAME IS '?????';

COMMENT ON COLUMN AGENT_APPLY.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN AGENT_APPLY.UPDATE_ID IS '???id';

COMMENT ON COLUMN AGENT_APPLY.UPDATE_NAME IS '?????';

COMMENT ON COLUMN AGENT_APPLY.UPDATE_TIME IS '????';

COMMENT ON COLUMN AGENT_APPLY.AUDIT_ID IS '???id';

COMMENT ON COLUMN AGENT_APPLY.AUDIT_NAME IS '?????';

COMMENT ON COLUMN AGENT_APPLY.AUDIT_TIME IS '????';

COMMENT ON COLUMN AGENT_APPLY.DELETE_ID IS '???id';

COMMENT ON COLUMN AGENT_APPLY.DELETE_NAME IS '?????';

COMMENT ON COLUMN AGENT_APPLY.DELETE_TIME IS '????';

COMMENT ON COLUMN AGENT_APPLY.EXHIBITION_STATUS IS '???? 0-???1-???2-????3-??4??';

COMMENT ON TABLE AGENT_APPLY IS '??????(??????)';

-- ----------------------------
-- Table structure for AGENT_APPLY_ATTACHMENT
-- ----------------------------
CREATE TABLE AGENT_APPLY_ATTACHMENT (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
APPLY_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
FILE_NAME VARCHAR2(200 BYTE) VISIBLE,
SYS_FILE_NAME VARCHAR2(30 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE DEFAULT sysdate  NOT NULL,
TYPE NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN AGENT_APPLY_ATTACHMENT.ID IS '主键';

COMMENT ON COLUMN AGENT_APPLY_ATTACHMENT.APPLY_ID IS '主表id，对应agent_apply.id';

COMMENT ON COLUMN AGENT_APPLY_ATTACHMENT.FILE_NAME IS '?????';

COMMENT ON COLUMN AGENT_APPLY_ATTACHMENT.SYS_FILE_NAME IS '??????????????????????';

COMMENT ON COLUMN AGENT_APPLY_ATTACHMENT.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN AGENT_APPLY_ATTACHMENT.TYPE IS '??0-???1-???';

COMMENT ON TABLE AGENT_APPLY_ATTACHMENT IS '????????';

-- ----------------------------
-- Table structure for AGENT_PLAN
-- ----------------------------
CREATE TABLE AGENT_PLAN (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
PLAN_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
TYPE_ID VARCHAR2(30 BYTE) VISIBLE,
TYPE_DESC VARCHAR2(100 BYTE) VISIBLE,
PLAN_TYPE NUMBER(1,0) VISIBLE NOT NULL,
GEN_PUR_FLAG NUMBER(1,0) VISIBLE,
STATUS NUMBER(2,0) VISIBLE NOT NULL,
MERGE_NO VARCHAR2(30 BYTE) VISIBLE,
DELETE_FLAG NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
RETURN_ADVICE VARCHAR2(1000 BYTE) VISIBLE,
REMARK VARCHAR2(1000 BYTE) VISIBLE,
ORG_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
DEPT_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
DEPT_NAME VARCHAR2(100 BYTE) VISIBLE NOT NULL,
AUDIT_ID VARCHAR2(30 BYTE) VISIBLE,
AUDIT_NAME VARCHAR2(100 BYTE) VISIBLE,
AUDIT_TIME DATE VISIBLE,
CREATE_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CREATE_NAME VARCHAR2(100 BYTE) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
UPDATE_ID VARCHAR2(30 BYTE) VISIBLE,
UPDATE_TIME DATE VISIBLE,
UPDATE_NAME VARCHAR2(20 BYTE) VISIBLE,
DELETE_ID VARCHAR2(30 BYTE) VISIBLE,
DELETE_NAME VARCHAR2(100 BYTE) VISIBLE,
DELETE_TIME DATE VISIBLE
);

COMMENT ON COLUMN AGENT_PLAN.ID IS '主键';

COMMENT ON COLUMN AGENT_PLAN.PLAN_NO IS '计划单号';

COMMENT ON COLUMN AGENT_PLAN.TYPE_ID IS '????ID';

COMMENT ON COLUMN AGENT_PLAN.TYPE_DESC IS '?????1???2??';

COMMENT ON COLUMN AGENT_PLAN.PLAN_TYPE IS '0门店采购计划，1汇总采购计划';

COMMENT ON COLUMN AGENT_PLAN.GEN_PUR_FLAG IS '???????????PLAN_TYPE=1????0????1????';

COMMENT ON COLUMN AGENT_PLAN.STATUS IS '0草拟，1待审核，2审核通过，3返回修改，4已汇总';

COMMENT ON COLUMN AGENT_PLAN.MERGE_NO IS '????????PLAN_TYPE=0???,?????STATUS=5';

COMMENT ON COLUMN AGENT_PLAN.DELETE_FLAG IS '是否删除。0否1是';

COMMENT ON COLUMN AGENT_PLAN.RETURN_ADVICE IS '??????';

COMMENT ON COLUMN AGENT_PLAN.REMARK IS '??';

COMMENT ON COLUMN AGENT_PLAN.ORG_ID IS '公司ID';

COMMENT ON COLUMN AGENT_PLAN.DEPT_ID IS '部门ID';

COMMENT ON COLUMN AGENT_PLAN.DEPT_NAME IS '部门名称';

COMMENT ON COLUMN AGENT_PLAN.AUDIT_ID IS '???ID';

COMMENT ON COLUMN AGENT_PLAN.AUDIT_NAME IS '?????';

COMMENT ON COLUMN AGENT_PLAN.AUDIT_TIME IS '????';

COMMENT ON COLUMN AGENT_PLAN.CREATE_ID IS '创建人ID';

COMMENT ON COLUMN AGENT_PLAN.CREATE_NAME IS '创建人名称';

COMMENT ON COLUMN AGENT_PLAN.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN AGENT_PLAN.UPDATE_ID IS '???ID';

COMMENT ON COLUMN AGENT_PLAN.UPDATE_TIME IS '????';

COMMENT ON COLUMN AGENT_PLAN.UPDATE_NAME IS '?????';

COMMENT ON COLUMN AGENT_PLAN.DELETE_ID IS '???ID';

COMMENT ON COLUMN AGENT_PLAN.DELETE_NAME IS '?????';

COMMENT ON COLUMN AGENT_PLAN.DELETE_TIME IS '????';

COMMENT ON TABLE AGENT_PLAN IS '??????';

-- ----------------------------
-- Table structure for AGENT_PLAN_DETAIL
-- ----------------------------
CREATE TABLE AGENT_PLAN_DETAIL (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
PLAN_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
PLAN_NO VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(200 BYTE) VISIBLE NOT NULL,
MATERIALS_TYPE VARCHAR2(20 BYTE) VISIBLE,
UNIT VARCHAR2(20 BYTE) VISIBLE,
PRICE NUMBER(14,3) VISIBLE NOT NULL,
QTY NUMBER(14,3) VISIBLE NOT NULL,
ADJUST_QTY NUMBER(14,3) VISIBLE NOT NULL,
AMOUNT NUMBER(14,3) VISIBLE NOT NULL,
ADJUST_AMOUNT NUMBER(14,3) VISIBLE NOT NULL
);

COMMENT ON COLUMN AGENT_PLAN_DETAIL.ID IS '主键';

COMMENT ON COLUMN AGENT_PLAN_DETAIL.PLAN_ID IS '对应主表ID';

COMMENT ON COLUMN AGENT_PLAN_DETAIL.PLAN_NO IS '计划单号';

COMMENT ON COLUMN AGENT_PLAN_DETAIL.MATERIALS_NO IS '物料号';

COMMENT ON COLUMN AGENT_PLAN_DETAIL.MATERIALS_DES IS '物料描述';

COMMENT ON COLUMN AGENT_PLAN_DETAIL.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN AGENT_PLAN_DETAIL.UNIT IS '??';

COMMENT ON COLUMN AGENT_PLAN_DETAIL.PRICE IS '单价';

COMMENT ON COLUMN AGENT_PLAN_DETAIL.QTY IS '数量';

COMMENT ON COLUMN AGENT_PLAN_DETAIL.ADJUST_QTY IS '调整后数量';

COMMENT ON COLUMN AGENT_PLAN_DETAIL.AMOUNT IS '总价';

COMMENT ON COLUMN AGENT_PLAN_DETAIL.ADJUST_AMOUNT IS '调整后总价';

COMMENT ON TABLE AGENT_PLAN_DETAIL IS '???????';

-- ----------------------------
-- Table structure for AGENT_RETURN
-- ----------------------------
CREATE TABLE AGENT_RETURN (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
RETURN_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SALE_OUT_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SALE_OUT_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
STATUS NUMBER(1,0) VISIBLE NOT NULL,
RECEIPT_NO VARCHAR2(30 CHAR) VISIBLE,
DELETE_FLAG NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
INBOUND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
SALE_TYPE NUMBER(1,0) VISIBLE NOT NULL,
TOTAL_AMOUNT NUMBER(22,3) VISIBLE DEFAULT 0  NOT NULL,
RETURN_ADVICE VARCHAR2(1000 CHAR) VISIBLE,
REMARK VARCHAR2(1000 CHAR) VISIBLE,
CREATOR_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MODIFIER_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
MODIFY_TIME DATE VISIBLE NOT NULL,
AUDIT_ID VARCHAR2(30 CHAR) VISIBLE,
AUDIT_NAME VARCHAR2(50 CHAR) VISIBLE,
AUDIT_TIME DATE VISIBLE,
DELETE_ID VARCHAR2(30 CHAR) VISIBLE,
DELETE_NAME VARCHAR2(50 CHAR) VISIBLE,
DELETE_TIME DATE VISIBLE,
WAREHOUSE_CODE VARCHAR2(36 BYTE) VISIBLE,
CHECK_STATE NUMBER(1,0) VISIBLE DEFAULT 0,
ORG_ID VARCHAR2(30 BYTE) VISIBLE
);

COMMENT ON COLUMN AGENT_RETURN.ID IS '代理商退货表ID';

COMMENT ON COLUMN AGENT_RETURN.RETURN_NO IS '代理商退货单号';

COMMENT ON COLUMN AGENT_RETURN.SALE_OUT_ID IS '销售出库单表主键';

COMMENT ON COLUMN AGENT_RETURN.SALE_OUT_NO IS '销售出库单号';

COMMENT ON COLUMN AGENT_RETURN.STATUS IS '退货单状态(0草拟；1待审核；2审核通过；3返回修改)';

COMMENT ON COLUMN AGENT_RETURN.RECEIPT_NO IS '????';

COMMENT ON COLUMN AGENT_RETURN.DELETE_FLAG IS '删除标记(0否；1是)';

COMMENT ON COLUMN AGENT_RETURN.INBOUND_STATUS IS '入库状态(0未入库；1部分入库；2已入库 3强制结单)';

COMMENT ON COLUMN AGENT_RETURN.SALE_TYPE IS '销售单类型(1-普通；2-三包；3-赠送)';

COMMENT ON COLUMN AGENT_RETURN.TOTAL_AMOUNT IS '总金额';

COMMENT ON COLUMN AGENT_RETURN.RETURN_ADVICE IS '??????';

COMMENT ON COLUMN AGENT_RETURN.REMARK IS '??';

COMMENT ON COLUMN AGENT_RETURN.CREATOR_ID IS '创建人id';

COMMENT ON COLUMN AGENT_RETURN.CREATOR_NAME IS '创建人姓名';

COMMENT ON COLUMN AGENT_RETURN.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN AGENT_RETURN.MODIFIER_ID IS '修改人ID';

COMMENT ON COLUMN AGENT_RETURN.MODIFIER_NAME IS '修改人名称';

COMMENT ON COLUMN AGENT_RETURN.MODIFY_TIME IS '修改时间';

COMMENT ON COLUMN AGENT_RETURN.AUDIT_ID IS '???ID';

COMMENT ON COLUMN AGENT_RETURN.AUDIT_NAME IS '?????';

COMMENT ON COLUMN AGENT_RETURN.AUDIT_TIME IS '????';

COMMENT ON COLUMN AGENT_RETURN.DELETE_ID IS '???ID';

COMMENT ON COLUMN AGENT_RETURN.DELETE_NAME IS '?????';

COMMENT ON COLUMN AGENT_RETURN.DELETE_TIME IS '????';

COMMENT ON COLUMN AGENT_RETURN.WAREHOUSE_CODE IS '????';

COMMENT ON COLUMN AGENT_RETURN.CHECK_STATE IS '????0-????1-?????2-???';

COMMENT ON COLUMN AGENT_RETURN.ORG_ID IS '??orgId';

COMMENT ON TABLE AGENT_RETURN IS '?????';

-- ----------------------------
-- Table structure for AGENT_RETURN_DETAIL
-- ----------------------------
CREATE TABLE AGENT_RETURN_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
RETURN_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIAL_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIAL_DESC VARCHAR2(255 CHAR) VISIBLE,
MATERIAL_TYPE VARCHAR2(60 CHAR) VISIBLE,
UNIT VARCHAR2(30 CHAR) VISIBLE,
RETURN_QUANTITY NUMBER(15,3) VISIBLE DEFAULT 0  NOT NULL,
PRICE NUMBER(15,3) VISIBLE DEFAULT 0  NOT NULL,
AMOUNT NUMBER(15,3) VISIBLE DEFAULT 0  NOT NULL,
RETURN_INBOUND_QTY NUMBER(15,3) VISIBLE DEFAULT 0  NOT NULL,
RETURN_INBOUND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
SALE_RETURN_QTY NUMBER(15,3) VISIBLE DEFAULT 0  NOT NULL,
SALES_OUT_BILL_DETAIL_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
REMAIN_RETURN_QTY NUMBER(15,3) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN AGENT_RETURN_DETAIL.ID IS '代理商退货详情表ID';

COMMENT ON COLUMN AGENT_RETURN_DETAIL.RETURN_ID IS '代理商退货单表id';

COMMENT ON COLUMN AGENT_RETURN_DETAIL.MATERIAL_NO IS '物料编码';

COMMENT ON COLUMN AGENT_RETURN_DETAIL.MATERIAL_DESC IS '????';

COMMENT ON COLUMN AGENT_RETURN_DETAIL.MATERIAL_TYPE IS '????';

COMMENT ON COLUMN AGENT_RETURN_DETAIL.UNIT IS '??';

COMMENT ON COLUMN AGENT_RETURN_DETAIL.RETURN_QUANTITY IS '退货数量';

COMMENT ON COLUMN AGENT_RETURN_DETAIL.PRICE IS '单价';

COMMENT ON COLUMN AGENT_RETURN_DETAIL.AMOUNT IS '退货总价';

COMMENT ON COLUMN AGENT_RETURN_DETAIL.RETURN_INBOUND_QTY IS '退货已入库数量';

COMMENT ON COLUMN AGENT_RETURN_DETAIL.RETURN_INBOUND_STATUS IS '退货入库状态（0未入库，1入库中，2入库完成，3强制结单）';

COMMENT ON COLUMN AGENT_RETURN_DETAIL.SALE_RETURN_QTY IS '销售单已退数量';

COMMENT ON COLUMN AGENT_RETURN_DETAIL.SALES_OUT_BILL_DETAIL_ID IS '销售出库单详情id';

COMMENT ON COLUMN AGENT_RETURN_DETAIL.REMAIN_RETURN_QTY IS '?????';

COMMENT ON TABLE AGENT_RETURN_DETAIL IS '??????';

-- ----------------------------
-- Table structure for API_CHECK_ACC
-- ----------------------------
CREATE TABLE API_CHECK_ACC (
ID NUMBER(10,0) VISIBLE NOT NULL,
APP_KEY VARCHAR2(16 BYTE) VISIBLE NOT NULL,
APP_SECRET VARCHAR2(32 BYTE) VISIBLE NOT NULL,
ACTIVE_FLAG NUMBER(1,0) VISIBLE DEFAULT 1  NOT NULL,
REMARK VARCHAR2(200 BYTE) VISIBLE,
REQUEST_PERIOD NUMBER(3,0) VISIBLE
);

COMMENT ON COLUMN API_CHECK_ACC.APP_KEY IS '认证KEY。必须定义为16位英文或者数字';

COMMENT ON COLUMN API_CHECK_ACC.APP_SECRET IS '认证secret。必须定义为32位英文或者数字';

COMMENT ON COLUMN API_CHECK_ACC.ACTIVE_FLAG IS '是否启用。0否1是';

COMMENT ON COLUMN API_CHECK_ACC.REMARK IS '??';

COMMENT ON COLUMN API_CHECK_ACC.REQUEST_PERIOD IS '?????????????????????????????5??';

COMMENT ON TABLE API_CHECK_ACC IS '?????????';

-- ----------------------------
-- Table structure for APP_SETTING
-- ----------------------------
CREATE TABLE APP_SETTING (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
TYPE VARCHAR2(20 CHAR) VISIBLE NOT NULL,
NAME VARCHAR2(20 CHAR) VISIBLE NOT NULL,
VERSION VARCHAR2(20 CHAR) VISIBLE NOT NULL,
IS_RIGID_UPDATE NUMBER(1,0) VISIBLE NOT NULL,
UPDATE_URL VARCHAR2(500 CHAR) VISIBLE,
NOTE VARCHAR2(200 CHAR) VISIBLE,
FILE_NAME VARCHAR2(500 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
IS_APPROVAL NUMBER(10,0) VISIBLE
);

COMMENT ON COLUMN APP_SETTING.ID IS '唯一标识';

COMMENT ON COLUMN APP_SETTING.TYPE IS '类型，目前只有PDA';

COMMENT ON COLUMN APP_SETTING.NAME IS '名称';

COMMENT ON COLUMN APP_SETTING.VERSION IS '版本号';

COMMENT ON COLUMN APP_SETTING.IS_RIGID_UPDATE IS '是否强制更新';

COMMENT ON COLUMN APP_SETTING.UPDATE_URL IS '????';

COMMENT ON COLUMN APP_SETTING.NOTE IS '??';

COMMENT ON COLUMN APP_SETTING.FILE_NAME IS '????';

COMMENT ON COLUMN APP_SETTING.CREATE_DATE IS '????';

COMMENT ON TABLE APP_SETTING IS 'App???';

-- ----------------------------
-- Table structure for AUTH_DEVICE_LIMIT
-- ----------------------------
CREATE TABLE AUTH_DEVICE_LIMIT (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
OEM_ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
DEVICE_TYPE NUMBER(1,0) VISIBLE NOT NULL
);

COMMENT ON COLUMN AUTH_DEVICE_LIMIT.ID IS '主键';

COMMENT ON COLUMN AUTH_DEVICE_LIMIT.OEM_ORG_ID IS '主机厂ID';

COMMENT ON COLUMN AUTH_DEVICE_LIMIT.ORG_ID IS '代理商ID';

COMMENT ON COLUMN AUTH_DEVICE_LIMIT.DEVICE_TYPE IS '设备类型：认证件-1，原厂件-0';

COMMENT ON TABLE AUTH_DEVICE_LIMIT IS '???????????????????';

-- ----------------------------
-- Table structure for BACK_INBOUND
-- ----------------------------
CREATE TABLE BACK_INBOUND (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
BACK_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
INBOUND_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
WAREHOUSE_CODE VARCHAR2(100 CHAR) VISIBLE,
IN_AREA VARCHAR2(100 CHAR) VISIBLE,
SAP_IN_AREA VARCHAR2(100 CHAR) VISIBLE,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(150 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
NOTE VARCHAR2(500 CHAR) VISIBLE
);

COMMENT ON COLUMN BACK_INBOUND.ID IS '主键id';

COMMENT ON COLUMN BACK_INBOUND.BACK_ORDER IS '回购单号';

COMMENT ON COLUMN BACK_INBOUND.INBOUND_ORDER IS '回购入库单号';

COMMENT ON COLUMN BACK_INBOUND.ORG_ID IS '企业orgid';

COMMENT ON COLUMN BACK_INBOUND.WAREHOUSE_CODE IS '????';

COMMENT ON COLUMN BACK_INBOUND.IN_AREA IS '????';

COMMENT ON COLUMN BACK_INBOUND.SAP_IN_AREA IS '??SAP??';

COMMENT ON COLUMN BACK_INBOUND.STATUS IS '???? 0???1????2???';

COMMENT ON COLUMN BACK_INBOUND.CREATE_ID IS '???id';

COMMENT ON COLUMN BACK_INBOUND.CREATE_NAME IS '?????';

COMMENT ON COLUMN BACK_INBOUND.CREATE_DATE IS '????';

COMMENT ON COLUMN BACK_INBOUND.NOTE IS '??';

COMMENT ON TABLE BACK_INBOUND IS '//BACK_INBOUND';

-- ----------------------------
-- Table structure for BACK_INBOUND_DETAIL
-- ----------------------------
CREATE TABLE BACK_INBOUND_DETAIL (
BILL_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(150 CHAR) VISIBLE,
MATERIALS_TYPE VARCHAR2(100 CHAR) VISIBLE,
UNIT VARCHAR2(100 CHAR) VISIBLE,
QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
SEND_QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0  ,
REAL_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0  ,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN BACK_INBOUND_DETAIL.BILL_ID IS '主表id';

COMMENT ON COLUMN BACK_INBOUND_DETAIL.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN BACK_INBOUND_DETAIL.MATERIALS_DES IS '????';

COMMENT ON COLUMN BACK_INBOUND_DETAIL.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN BACK_INBOUND_DETAIL.UNIT IS '??';

COMMENT ON COLUMN BACK_INBOUND_DETAIL.QTY IS '????';

COMMENT ON COLUMN BACK_INBOUND_DETAIL.SEND_QTY IS '???????';

COMMENT ON COLUMN BACK_INBOUND_DETAIL.AMOUNT IS '??????';

COMMENT ON COLUMN BACK_INBOUND_DETAIL.REAL_AMOUNT IS '??????';

COMMENT ON COLUMN BACK_INBOUND_DETAIL.STATUS IS '?? 0???1????2???';

COMMENT ON TABLE BACK_INBOUND_DETAIL IS '//BACK_INBOUND_DETAIL';

-- ----------------------------
-- Table structure for BACK_OUTBOUND
-- ----------------------------
CREATE TABLE BACK_OUTBOUND (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
BACK_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
OUTBOUND_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
WAREHOUSE_CODE VARCHAR2(100 CHAR) VISIBLE,
IN_AREA VARCHAR2(100 CHAR) VISIBLE,
SAP_IN_AREA VARCHAR2(100 CHAR) VISIBLE,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0
,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(150 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
NOTE VARCHAR2(500 CHAR) VISIBLE
);

COMMENT ON COLUMN BACK_OUTBOUND.ID IS '主键id';

COMMENT ON COLUMN BACK_OUTBOUND.BACK_ORDER IS '回购单号';

COMMENT ON COLUMN BACK_OUTBOUND.OUTBOUND_ORDER IS '回购出库单号';

COMMENT ON COLUMN BACK_OUTBOUND.ORG_ID IS '企业orgid';

COMMENT ON COLUMN BACK_OUTBOUND.WAREHOUSE_CODE IS '????';

COMMENT ON COLUMN BACK_OUTBOUND.IN_AREA IS '????';

COMMENT ON COLUMN BACK_OUTBOUND.SAP_IN_AREA IS '??SAP??';

COMMENT ON COLUMN BACK_OUTBOUND.STATUS IS '???? 0-????1-?????2-???';

COMMENT ON COLUMN BACK_OUTBOUND.CREATE_ID IS '???id';

COMMENT ON COLUMN BACK_OUTBOUND.CREATE_NAME IS '?????';

COMMENT ON COLUMN BACK_OUTBOUND.CREATE_DATE IS '????';

COMMENT ON COLUMN BACK_OUTBOUND.NOTE IS '??';

COMMENT ON TABLE BACK_OUTBOUND IS '??????';

-- ----------------------------
-- Table structure for BACK_OUTBOUND_DETAIL
-- ----------------------------
CREATE TABLE BACK_OUTBOUND_DETAIL (
BILL_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(150 CHAR) VISIBLE,
MATERIALS_TYPE VARCHAR2(100 CHAR) VISIBLE,
UNIT VARCHAR2(100 CHAR) VISIBLE,
QTY NUMBER(14,3) VISIBLE DEFAULT 0
,
SEND_QTY NUMBER(14,3) VISIBLE DEFAULT 0
,
AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0
,
REAL_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0
,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN BACK_OUTBOUND_DETAIL.BILL_ID IS '主表id';

COMMENT ON COLUMN BACK_OUTBOUND_DETAIL.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN BACK_OUTBOUND_DETAIL.MATERIALS_DES IS '????';

COMMENT ON COLUMN BACK_OUTBOUND_DETAIL.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN BACK_OUTBOUND_DETAIL.UNIT IS '??';

COMMENT ON COLUMN BACK_OUTBOUND_DETAIL.QTY IS '????';

COMMENT ON COLUMN BACK_OUTBOUND_DETAIL.SEND_QTY IS '???????';

COMMENT ON COLUMN BACK_OUTBOUND_DETAIL.AMOUNT IS '??????';

COMMENT ON COLUMN BACK_OUTBOUND_DETAIL.REAL_AMOUNT IS '??????';

COMMENT ON COLUMN BACK_OUTBOUND_DETAIL.STATUS IS '?? 0-????1-?????2-???';

COMMENT ON TABLE BACK_OUTBOUND_DETAIL IS '????????';

-- ----------------------------
-- Table structure for BARCODE_MANAGE
-- ----------------------------
CREATE TABLE BARCODE_MANAGE (
BARCODE VARCHAR2(800 BYTE) VISIBLE,
TOTAL_BARCODE VARCHAR2(800 BYTE) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
BILL_TYPE VARCHAR2(10 BYTE) VISIBLE,
BILL_ID VARCHAR2(20 BYTE) VISIBLE,
BILL_NO VARCHAR2(30 BYTE) VISIBLE,
BARCODE_FLAG NUMBER(2,0) VISIBLE,
BARCODE_DESC VARCHAR2(50 CHAR) VISIBLE,
FACTORYID VARCHAR2(10 CHAR) VISIBLE,
SPLIRID VARCHAR2(20 CHAR) VISIBLE,
VINID VARCHAR2(25 CHAR) VISIBLE,
ORAWYD VARCHAR2(20 CHAR) VISIBLE,
MATERIALS_NO VARCHAR2(30 BYTE) VISIBLE,
MATERIALS_DES VARCHAR2(200 BYTE) VISIBLE,
BATCH_ID VARCHAR2(50 BYTE) VISIBLE,
TOTAL_QTY NUMBER(14,3) VISIBLE,
CURRENT_QTY NUMBER(14,3) VISIBLE,
LEFT_QTY NUMBER(14,3) VISIBLE,
WAREHOUSE_CODE VARCHAR2(30 CHAR) VISIBLE,
DEPARTMENT_ID VARCHAR2(20 CHAR) VISIBLE,
PRINT_ID VARCHAR2(20 BYTE) VISIBLE,
PRINT_NAME VARCHAR2(50 CHAR) VISIBLE,
PRINT_TIME DATE VISIBLE,
REPRINT_COUNT NUMBER(9,0) VISIBLE DEFAULT 0  ,
MODEL VARCHAR2(34 CHAR) VISIBLE,
BARCODE_STATUS VARCHAR2(50 CHAR) VISIBLE,
STATUS_DESC VARCHAR2(50 CHAR) VISIBLE,
CREATE_ID VARCHAR2(20 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(50 CHAR) VISIBLE,
CREATE_TIME DATE VISIBLE,
REMARK VARCHAR2(200 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0  ,
IS_SEPARATE NUMBER(1,0) VISIBLE DEFAULT 0  ,
SOURCE_BARCODE VARCHAR2(20 BYTE) VISIBLE,
SEQ NUMBER(9,0) VISIBLE DEFAULT 1   NOT NULL,
ROW_NO NUMBER(6,0) VISIBLE,
FIRST_CHECK_DATE TIMESTAMP(6) VISIBLE,
CHECK_NUM NUMBER(11,0) VISIBLE DEFAULT 0,
INBOUND_USER VARCHAR2(30 CHAR) VISIBLE,
OUTBOUND_USER VARCHAR2(30 CHAR) VISIBLE,
SPLIT_USER VARCHAR2(30 CHAR) VISIBLE,
PURCHASE_CONTRACT_NO VARCHAR2(50 BYTE) VISIBLE,
MACHINE_MODEL VARCHAR2(100 BYTE) VISIBLE,
COUNTRY VARCHAR2(50 BYTE) VISIBLE,
FORWARD_BARCODE_ORIG_ORGID VARCHAR2(20 BYTE) VISIBLE,
FORWARD_BARCODE_ORIG_CODE VARCHAR2(20 BYTE) VISIBLE,
LATEST_OUT_TIME TIMESTAMP(6) VISIBLE,
LATEST_IN_TIME TIMESTAMP(6) VISIBLE,
FORWARD NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN BARCODE_MANAGE.BARCODE IS '??';

COMMENT ON COLUMN BARCODE_MANAGE.TOTAL_BARCODE IS '???';

COMMENT ON COLUMN BARCODE_MANAGE.BILL_TYPE IS '??????????????';

COMMENT ON COLUMN BARCODE_MANAGE.BILL_ID IS '??id????????id';

COMMENT ON COLUMN BARCODE_MANAGE.BILL_NO IS '????';

COMMENT ON COLUMN BARCODE_MANAGE.BARCODE_FLAG IS '????(0-????1-???)';

COMMENT ON COLUMN BARCODE_MANAGE.BARCODE_DESC IS '????';

COMMENT ON COLUMN BARCODE_MANAGE.FACTORYID IS '????????';

COMMENT ON COLUMN BARCODE_MANAGE.SPLIRID IS '?????';

COMMENT ON COLUMN BARCODE_MANAGE.VINID IS 'VIN?';

COMMENT ON COLUMN BARCODE_MANAGE.ORAWYD IS '??';

COMMENT ON COLUMN BARCODE_MANAGE.MATERIALS_NO IS '????';

COMMENT ON COLUMN BARCODE_MANAGE.MATERIALS_DES IS '????';

COMMENT ON COLUMN BARCODE_MANAGE.BATCH_ID IS '???';

COMMENT ON COLUMN BARCODE_MANAGE.TOTAL_QTY IS '???????';

COMMENT ON COLUMN BARCODE_MANAGE.CURRENT_QTY IS '??????';

COMMENT ON COLUMN BARCODE_MANAGE.LEFT_QTY IS '?????????';

COMMENT ON COLUMN BARCODE_MANAGE.WAREHOUSE_CODE IS '??';

COMMENT ON COLUMN BARCODE_MANAGE.DEPARTMENT_ID IS '???????????????????????';

COMMENT ON COLUMN BARCODE_MANAGE.PRINT_ID IS '???';

COMMENT ON COLUMN BARCODE_MANAGE.PRINT_NAME IS '???';

COMMENT ON COLUMN BARCODE_MANAGE.PRINT_TIME IS '????';

COMMENT ON COLUMN BARCODE_MANAGE.REPRINT_COUNT IS '????';

COMMENT ON COLUMN BARCODE_MANAGE.MODEL IS '	??????90X60?';

COMMENT ON COLUMN BARCODE_MANAGE.BARCODE_STATUS IS '?????0-????1-?????????2-???3-???4-???5-???6-???7-???????????????8-??????9-???10-?????11-?????';

COMMENT ON COLUMN BARCODE_MANAGE.STATUS_DESC IS '????';

COMMENT ON COLUMN BARCODE_MANAGE.CREATE_ID IS '???';

COMMENT ON COLUMN BARCODE_MANAGE.CREATE_NAME IS '???';

COMMENT ON COLUMN BARCODE_MANAGE.CREATE_TIME IS '????';

COMMENT ON COLUMN BARCODE_MANAGE.REMARK IS '??';

COMMENT ON COLUMN BARCODE_MANAGE.IS_DEL IS '?????0?1?';

COMMENT ON COLUMN BARCODE_MANAGE.IS_SEPARATE IS '?????0?1?';

COMMENT ON COLUMN BARCODE_MANAGE.SOURCE_BARCODE IS '???';

COMMENT ON COLUMN BARCODE_MANAGE.SEQ IS '分条码的序号';

COMMENT ON COLUMN BARCODE_MANAGE.ROW_NO IS '??';

COMMENT ON COLUMN BARCODE_MANAGE.FIRST_CHECK_DATE IS '????';

COMMENT ON COLUMN BARCODE_MANAGE.CHECK_NUM IS '????';

COMMENT ON COLUMN BARCODE_MANAGE.INBOUND_USER IS '?????';

COMMENT ON COLUMN BARCODE_MANAGE.OUTBOUND_USER IS '?????';

COMMENT ON COLUMN BARCODE_MANAGE.SPLIT_USER IS '???????';

COMMENT ON COLUMN BARCODE_MANAGE.PURCHASE_CONTRACT_NO IS '?????';

COMMENT ON COLUMN BARCODE_MANAGE.MACHINE_MODEL IS '??';

COMMENT ON COLUMN BARCODE_MANAGE.COUNTRY IS '??';

COMMENT ON COLUMN BARCODE_MANAGE.FORWARD_BARCODE_ORIG_ORGID IS '??????????';

COMMENT ON COLUMN BARCODE_MANAGE.FORWARD_BARCODE_ORIG_CODE IS '????????';

COMMENT ON COLUMN BARCODE_MANAGE.LATEST_OUT_TIME IS '??????????';

COMMENT ON COLUMN BARCODE_MANAGE.LATEST_IN_TIME IS '??????????';

COMMENT ON COLUMN BARCODE_MANAGE.FORWARD IS '?????0/null??, 1:????????????????????';

COMMENT ON TABLE BARCODE_MANAGE IS '???';

-- ----------------------------
-- Table structure for BASIC_DATA_DICTIONARY
-- ----------------------------
CREATE TABLE BASIC_DATA_DICTIONARY (
ID VARCHAR2(20 BYTE) VISIBLE,
P_ID VARCHAR2(20 BYTE) VISIBLE DEFAULT 0  ,
CODE VARCHAR2(20 CHAR) VISIBLE,
GROUP_NAME VARCHAR2(10 CHAR) VISIBLE,
NAME VARCHAR2(50 CHAR) VISIBLE,
VALID NUMBER(1,0) VISIBLE DEFAULT 1  ,
PRIVATED NUMBER(1,0) VISIBLE DEFAULT 0  ,
REMARK VARCHAR2(200 CHAR) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE DEFAULT NULL,
ORG_NAME VARCHAR2(200 CHAR) VISIBLE DEFAULT NULL
);

COMMENT ON COLUMN BASIC_DATA_DICTIONARY.CODE IS '??';

COMMENT ON COLUMN BASIC_DATA_DICTIONARY.GROUP_NAME IS '???';

COMMENT ON COLUMN BASIC_DATA_DICTIONARY.NAME IS '??';

COMMENT ON COLUMN BASIC_DATA_DICTIONARY.VALID IS '????';

COMMENT ON COLUMN BASIC_DATA_DICTIONARY.PRIVATED IS '????';

COMMENT ON COLUMN BASIC_DATA_DICTIONARY.REMARK IS '??';

COMMENT ON TABLE BASIC_DATA_DICTIONARY IS '????';

-- ----------------------------
-- Table structure for BASIC_DATA_PURCHASE_METHOD
-- ----------------------------
CREATE TABLE BASIC_DATA_PURCHASE_METHOD (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
NAME VARCHAR2(50 BYTE) VISIBLE NOT NULL,
P_ID VARCHAR2(20 BYTE) VISIBLE DEFAULT 0  NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
CODE VARCHAR2(20 BYTE) VISIBLE,
VALID NUMBER(1,0) VISIBLE NOT NULL,
REMARK VARCHAR2(200 BYTE) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN BASIC_DATA_PURCHASE_METHOD.ID IS 'ID';

COMMENT ON COLUMN BASIC_DATA_PURCHASE_METHOD.NAME IS '名称';

COMMENT ON COLUMN BASIC_DATA_PURCHASE_METHOD.P_ID IS '父ID';

COMMENT ON COLUMN BASIC_DATA_PURCHASE_METHOD.ORG_ID IS '??ID';

COMMENT ON COLUMN BASIC_DATA_PURCHASE_METHOD.CODE IS '??';

COMMENT ON COLUMN BASIC_DATA_PURCHASE_METHOD.VALID IS '是否有效';

COMMENT ON COLUMN BASIC_DATA_PURCHASE_METHOD.REMARK IS '??';

COMMENT ON TABLE BASIC_DATA_PURCHASE_METHOD IS '??????????';

-- ----------------------------
-- Table structure for BASIC_DATA_SEND_METHOD
-- ----------------------------
CREATE TABLE BASIC_DATA_SEND_METHOD (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
NAME VARCHAR2(50 BYTE) VISIBLE NOT NULL,
P_ID VARCHAR2(20 BYTE) VISIBLE DEFAULT 0  NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
CODE VARCHAR2(20 BYTE) VISIBLE,
VALID NUMBER(1,0) VISIBLE NOT NULL,
REMARK VARCHAR2(200 BYTE) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN BASIC_DATA_SEND_METHOD.ID IS 'ID';

COMMENT ON COLUMN BASIC_DATA_SEND_METHOD.NAME IS '名称';

COMMENT ON COLUMN BASIC_DATA_SEND_METHOD.P_ID IS '父ID';

COMMENT ON COLUMN BASIC_DATA_SEND_METHOD.ORG_ID IS '??ID';

COMMENT ON COLUMN BASIC_DATA_SEND_METHOD.CODE IS '??';

COMMENT ON COLUMN BASIC_DATA_SEND_METHOD.VALID IS '是否有效';

COMMENT ON COLUMN BASIC_DATA_SEND_METHOD.REMARK IS '??';

COMMENT ON TABLE BASIC_DATA_SEND_METHOD IS '??????????';

-- ----------------------------
-- Table structure for BASIC_PRI_MATERIALS
-- ----------------------------
CREATE TABLE BASIC_PRI_MATERIALS (
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
MATERIALS_NO VARCHAR2(100 BYTE) VISIBLE,
MATERIALS_DES VARCHAR2(1000 BYTE) VISIBLE,
DELIVERY_TYPE VARCHAR2(10 CHAR) VISIBLE,
STANDARD_PRICE NUMBER(22,0) VISIBLE,
PRICE NUMBER(22,0) VISIBLE,
PRICE_UNIT VARCHAR2(10 CHAR) VISIBLE,
PURCHASE_TYPE VARCHAR2(10 CHAR) VISIBLE,
MOVING_AVERAGE_PRICE NUMBER(9,0) VISIBLE,
STOCK_LOCATION VARCHAR2(64 CHAR) VISIBLE,
PURCHASE_GROUP VARCHAR2(10 CHAR) VISIBLE,
PURCHASE_CYCLE VARCHAR2(10 CHAR) VISIBLE,
ENTRANCE_DEVICE NUMBER(1,0) VISIBLE DEFAULT 0  ,
CRUCIAL_DEVICE NUMBER(1,0) VISIBLE DEFAULT 0  ,
MATERIALS_TYPE_ID VARCHAR2(100 BYTE) VISIBLE,
MATERIALS_TYPE VARCHAR2(100 BYTE) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
CREATE_ID VARCHAR2(20 CHAR) VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE,
UPDATE_ID VARCHAR2(20 CHAR) VISIBLE,
DELETED NUMBER(1,0) VISIBLE DEFAULT 0  ,
CUSTOM_MATERIALS_NO VARCHAR2(15 BYTE) VISIBLE,
MATERIALS_ID VARCHAR2(100 BYTE) VISIBLE,
UNIT VARCHAR2(100 BYTE) VISIBLE,
SAP NUMBER(1,0) VISIBLE DEFAULT 0  ,
PRODUCT_GROUP VARCHAR2(2 CHAR) VISIBLE DEFAULT '',
MATERIALS_GROUP VARCHAR2(9 CHAR) VISIBLE DEFAULT '',
MATERIALS_GROUP_DEC VARCHAR2(20 CHAR) VISIBLE DEFAULT '',
OUT_MATERIALS_GROUP VARCHAR2(20 CHAR) VISIBLE DEFAULT '',
OUT_MATERIALS_GROUP_DEC VARCHAR2(20 CHAR) VISIBLE DEFAULT '',
GRADE VARCHAR2(30 CHAR) VISIBLE,
GRADE_ID VARCHAR2(30 CHAR) VISIBLE,
SAFE_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0,
IS_MINIMUM_BUY NUMBER(1,0) VISIBLE DEFAULT 0,
MINIMUM_BUY NUMBER(10,0) VISIBLE DEFAULT 1,
IS_DIRECT_CAST NUMBER(1,0) VISIBLE DEFAULT 0,
REPLACE_MATERIALS_NO VARCHAR2(500 BYTE) VISIBLE,
RETROFIT_MATERIALS_NO VARCHAR2(15 BYTE) VISIBLE,
MAX_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0,
RATIO VARCHAR2(10 BYTE) VISIBLE,
IS_EXCIPIENTS NUMBER(1,0) VISIBLE DEFAULT 0,
SUPPLIER_ORG_ID VARCHAR2(20 CHAR) VISIBLE,
SUPPLIER_ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
IS_GROUP_PUR NUMBER(1,0) VISIBLE,
UPDATE_FLAG NUMBER(1,0) VISIBLE DEFAULT 0  ,
MACHINE_TYPE VARCHAR2(100 BYTE) VISIBLE,
DELIVERY_SPEND NUMBER(5,2) VISIBLE,
REPLACE_MATERIALS_NOTE VARCHAR2(255 BYTE) VISIBLE,
REMARK VARCHAR2(200 CHAR) VISIBLE,
AGENT_PURCHASE_PRICE NUMBER(22,3) VISIBLE DEFAULT 0 ,
ORG_IMAGE_URL VARCHAR2(1000 BYTE) VISIBLE,
DEALER_IMAGE_URL VARCHAR2(1000 BYTE) VISIBLE,
WEIGHT NUMBER(12,6) VISIBLE,
WEIGHT_UNIT VARCHAR2(30 CHAR) VISIBLE,
MATERIALS_DETAIL CLOB VISIBLE,
AUTH_DEVICE NUMBER(1,0) VISIBLE DEFAULT 0,
VALID_FLAG NUMBER(1,0) VISIBLE DEFAULT 0,
MAINTENANCE_TYPE VARCHAR2(2 BYTE) VISIBLE,
MATERIALS_MEASURE VARCHAR2(600 BYTE) VISIBLE,
PARITY_PRICE NUMBER(22,0) VISIBLE,
SELF_MADE NUMBER(10,0) VISIBLE DEFAULT 0 ,
BASIC_MACHINE NUMBER(10,0) VISIBLE DEFAULT 0 ,
IS_DIRECT_CAST_HF NUMBER(1,0) VISIBLE DEFAULT 0,
SELF_MADE_COMPANY_CODE VARCHAR2(64 BYTE) VISIBLE,
SELF_MADE_COMPANY_NAME VARCHAR2(255 BYTE) VISIBLE,
MATERIALS_SHORT_NO VARCHAR2(100 BYTE) VISIBLE,
MODEL_CODE VARCHAR2(100 BYTE) VISIBLE,
ARR_FACTORY VARCHAR2(10 BYTE) VISIBLE,
MATERIALS_DES_EN VARCHAR2(100 BYTE) VISIBLE,
PACK_STANDARD NUMBER VISIBLE,
PACK_QUANTITY NUMBER VISIBLE,
MINNUM NUMBER(14,4) VISIBLE,
PRIO VARCHAR2(255 BYTE) VISIBLE,
EFF_START TIMESTAMP(6) VISIBLE,
FACTORY_ID VARCHAR2(255 BYTE) VISIBLE
);

COMMENT ON COLUMN BASIC_PRI_MATERIALS.ORG_ID IS '企业编号';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MATERIALS_NO IS '物料号';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MATERIALS_DES IS '物料描述';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.DELIVERY_TYPE IS '配送类型';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.STANDARD_PRICE IS '标准价、含税成本价';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.PRICE IS '全国统一价、进货基准价、销售价';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.PRICE_UNIT IS '价格单位';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.PURCHASE_TYPE IS '采购类型';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MOVING_AVERAGE_PRICE IS '移动平均价';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.STOCK_LOCATION IS '库存库位';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.PURCHASE_GROUP IS '采购组';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.PURCHASE_CYCLE IS '采购周期';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.ENTRANCE_DEVICE IS '进口件
';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.CRUCIAL_DEVICE IS '关键件';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MATERIALS_TYPE_ID IS '物料分类编码';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MATERIALS_TYPE IS '物料分类';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.CREATE_DATE IS '创建日期';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.CREATE_ID IS '创建人';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.UPDATE_DATE IS '修改日期';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.UPDATE_ID IS '修改人';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.DELETED IS '是否删除';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.CUSTOM_MATERIALS_NO IS '自定义物料编号
';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MATERIALS_ID IS '物料ID';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.UNIT IS '单位';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.SAP IS '是否从SAP同步过来的，0否1是';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.PRODUCT_GROUP IS '产品组';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MATERIALS_GROUP IS '物料组';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MATERIALS_GROUP_DEC IS '物料组描述';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.OUT_MATERIALS_GROUP IS '外部物料组';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.OUT_MATERIALS_GROUP_DEC IS '外部物料组描述';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.GRADE IS '物料级别';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.GRADE_ID IS '物料级别ID';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.SAFE_AMOUNT IS '安全库存';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.IS_MINIMUM_BUY IS '是否设置最小购买(0否 1是)';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MINIMUM_BUY IS '最小购买量(默认最小为1)';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.IS_DIRECT_CAST IS '是否直投属性';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.REPLACE_MATERIALS_NO IS '替换物料编码';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.RETROFIT_MATERIALS_NO IS '改型物料编码';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MAX_AMOUNT IS '上限库存';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.RATIO IS '系数';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.IS_EXCIPIENTS IS '是否辅料：0否，1是';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.SUPPLIER_ORG_ID IS '供应商orgID';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.SUPPLIER_ORG_NAME IS '供应商名称';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.IS_GROUP_PUR IS '是否集购物料（集团采购）：0否，1是';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MACHINE_TYPE IS '所属机型';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.DELIVERY_SPEND IS '物料交货期，单位：月';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.REPLACE_MATERIALS_NOTE IS '替换物料描述';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.REMARK IS '描述';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.AGENT_PURCHASE_PRICE IS '代理商采购基准价';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.ORG_IMAGE_URL IS '主机厂设置商品图片(可设置9张)';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.DEALER_IMAGE_URL IS '代理商设置商品图片(只可设置1张)';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.WEIGHT IS '物料重量';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.WEIGHT_UNIT IS '物料重量单位';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MATERIALS_DETAIL IS '物料描述详情';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.AUTH_DEVICE IS '是否认证件';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.VALID_FLAG IS '是否有效性';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MAINTENANCE_TYPE IS 'A/B件类型  A保养件易损件 B维修件';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MATERIALS_MEASURE IS '尺寸';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.PARITY_PRICE IS '平均价';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.SELF_MADE IS '?????0-??1-?';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.BASIC_MACHINE IS '?????0-??1-?';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.IS_DIRECT_CAST_HF IS '????????0-? 1-?';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.SELF_MADE_COMPANY_CODE IS '????????????????';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.SELF_MADE_COMPANY_NAME IS '???????';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MATERIALS_SHORT_NO IS '物料简号';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MODEL_CODE IS '零件所属车型';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.ARR_FACTORY IS '工厂';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.PACK_STANDARD IS '规格包装';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.PACK_QUANTITY IS '订购包装';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.MINNUM IS '最小订购量';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.PRIO IS '优先级';

COMMENT ON COLUMN BASIC_PRI_MATERIALS.EFF_START IS '生效时间';

COMMENT ON TABLE BASIC_PRI_MATERIALS IS '物料私有表';

-- ----------------------------
-- Table structure for BASIC_PRI_MATERIALS_EXTEND
-- ----------------------------
CREATE TABLE BASIC_PRI_MATERIALS_EXTEND (
MATERIALS_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
TAX_RATE NUMBER(9,2) VISIBLE,
TAX_NOT_PRICE NUMBER(9,0) VISIBLE,
PLANED_PRICE NUMBER(9,0) VISIBLE,
IS_IMPORTANT_DEVICE NUMBER(1,0) VISIBLE DEFAULT 0 ,
IS_UNDERFRAME NUMBER(1,0) VISIBLE DEFAULT 0 ,
IS_BATCH_MANAGE NUMBER(1,0) VISIBLE DEFAULT 1 ,
PARENT_MATERIALS_NO VARCHAR2(2000 BYTE) VISIBLE,
PLANNER_ID VARCHAR2(20 BYTE) VISIBLE,
PLANNER_NAME VARCHAR2(100 BYTE) VISIBLE
);

COMMENT ON COLUMN BASIC_PRI_MATERIALS_EXTEND.TAX_RATE IS '??';

COMMENT ON COLUMN BASIC_PRI_MATERIALS_EXTEND.TAX_NOT_PRICE IS '??????';

COMMENT ON COLUMN BASIC_PRI_MATERIALS_EXTEND.PLANED_PRICE IS '????';

COMMENT ON COLUMN BASIC_PRI_MATERIALS_EXTEND.IS_IMPORTANT_DEVICE IS '????? ??? 0 ? 1 ?';

COMMENT ON COLUMN BASIC_PRI_MATERIALS_EXTEND.IS_UNDERFRAME IS '???? ??? 0 ? 1 ?';

COMMENT ON COLUMN BASIC_PRI_MATERIALS_EXTEND.IS_BATCH_MANAGE IS '?????? ??? 0 ? 1 ?';

COMMENT ON COLUMN BASIC_PRI_MATERIALS_EXTEND.PARENT_MATERIALS_NO IS '????';

COMMENT ON COLUMN BASIC_PRI_MATERIALS_EXTEND.PLANNER_ID IS '???ID';

COMMENT ON COLUMN BASIC_PRI_MATERIALS_EXTEND.PLANNER_NAME IS '?????';

COMMENT ON TABLE BASIC_PRI_MATERIALS_EXTEND IS '//BASIC_PRI_MATERIALS_EXTEND';

-- ----------------------------
-- Table structure for BASIC_PUB_MATERIALS
-- ----------------------------
CREATE TABLE BASIC_PUB_MATERIALS (
MATERIALS_NO VARCHAR2(15 BYTE) VISIBLE,
MATERIALS_DES VARCHAR2(50 CHAR) VISIBLE,
MATERIALS_GROUP VARCHAR2(10 CHAR) VISIBLE,
UNIT VARCHAR2(10 CHAR) VISIBLE,
GROUP_PURCH_CLASS VARCHAR2(10 CHAR) VISIBLE,
GROUP_PURCH_CATEGORY VARCHAR2(10 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
CREATE_ID VARCHAR2(18 CHAR) VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE,
UPDATE_ID VARCHAR2(18 CHAR) VISIBLE
);

COMMENT ON COLUMN BASIC_PUB_MATERIALS.MATERIALS_NO IS '???';

COMMENT ON COLUMN BASIC_PUB_MATERIALS.MATERIALS_DES IS '????';

COMMENT ON COLUMN BASIC_PUB_MATERIALS.MATERIALS_GROUP IS '????';

COMMENT ON COLUMN BASIC_PUB_MATERIALS.UNIT IS '??';

COMMENT ON COLUMN BASIC_PUB_MATERIALS.GROUP_PURCH_CLASS IS '????';

COMMENT ON COLUMN BASIC_PUB_MATERIALS.GROUP_PURCH_CATEGORY IS '????';

COMMENT ON COLUMN BASIC_PUB_MATERIALS.CREATE_DATE IS '????';

COMMENT ON COLUMN BASIC_PUB_MATERIALS.CREATE_ID IS '???';

COMMENT ON COLUMN BASIC_PUB_MATERIALS.UPDATE_DATE IS '????';

COMMENT ON COLUMN BASIC_PUB_MATERIALS.UPDATE_ID IS '???';

COMMENT ON TABLE BASIC_PUB_MATERIALS IS '?????';

-- ----------------------------
-- Table structure for BASIC_PUB_MATERIALS_DES_LOCAL
-- ----------------------------
CREATE TABLE BASIC_PUB_MATERIALS_DES_LOCAL (
MATERIALS_NO VARCHAR2(50 BYTE) VISIBLE NOT NULL,
MATERIALS_DES_EN VARCHAR2(2000 BYTE) VISIBLE,
CREATE_DATE DATE VISIBLE,
CREATE_ID VARCHAR2(50 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN BASIC_PUB_MATERIALS_DES_LOCAL.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN BASIC_PUB_MATERIALS_DES_LOCAL.MATERIALS_DES_EN IS '??????';

COMMENT ON COLUMN BASIC_PUB_MATERIALS_DES_LOCAL.CREATE_DATE IS '????';

COMMENT ON COLUMN BASIC_PUB_MATERIALS_DES_LOCAL.CREATE_ID IS '???ID';

COMMENT ON COLUMN BASIC_PUB_MATERIALS_DES_LOCAL.UPDATE_DATE IS '????';

COMMENT ON COLUMN BASIC_PUB_MATERIALS_DES_LOCAL.UPDATE_ID IS '???ID';

COMMENT ON TABLE BASIC_PUB_MATERIALS_DES_LOCAL IS '???????';

-- ----------------------------
-- Table structure for BILL_TYPE_CONFIG
-- ----------------------------
CREATE TABLE BILL_TYPE_CONFIG (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
TYPE VARCHAR2(30 CHAR) VISIBLE,
IS_SYNSAP NUMBER(1,0) VISIBLE,
INNER_ORDER VARCHAR2(30 CHAR) VISIBLE,
INNER_ORDER_NOTE VARCHAR2(255 CHAR) VISIBLE,
MOVE_TYPE VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
IN_OUT NUMBER(1,0) VISIBLE,
CREATE_ID VARCHAR2(30 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(30 BYTE) VISIBLE,
ORG_ID VARCHAR2(30 BYTE) VISIBLE
);

COMMENT ON COLUMN BILL_TYPE_CONFIG.ID IS '唯一标识id';

COMMENT ON COLUMN BILL_TYPE_CONFIG.TYPE IS '????';

COMMENT ON COLUMN BILL_TYPE_CONFIG.IS_SYNSAP IS '?????sap 0?1?';

COMMENT ON COLUMN BILL_TYPE_CONFIG.INNER_ORDER IS '?????';

COMMENT ON COLUMN BILL_TYPE_CONFIG.INNER_ORDER_NOTE IS '??????';

COMMENT ON COLUMN BILL_TYPE_CONFIG.MOVE_TYPE IS '????';

COMMENT ON COLUMN BILL_TYPE_CONFIG.IN_OUT IS '0???? 1????';

COMMENT ON COLUMN BILL_TYPE_CONFIG.CREATE_ID IS '???ID';

COMMENT ON COLUMN BILL_TYPE_CONFIG.CREATE_NAME IS '创建人姓名';

COMMENT ON COLUMN BILL_TYPE_CONFIG.ORG_ID IS '??ID';

COMMENT ON TABLE BILL_TYPE_CONFIG IS '//BILL_TYPE_CONFIG';

-- ----------------------------
-- Table structure for BILL_TYPE_DETAIL
-- ----------------------------
CREATE TABLE BILL_TYPE_DETAIL (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
TYPE_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
INNER_ORDER VARCHAR2(30 CHAR) VISIBLE,
INNER_ORDER_NOTE VARCHAR2(255 CHAR) VISIBLE
);

COMMENT ON COLUMN BILL_TYPE_DETAIL.ID IS '唯一标识';

COMMENT ON COLUMN BILL_TYPE_DETAIL.TYPE_ID IS '主表id，对应BILL_TYPE_CONFIG.ID';

COMMENT ON COLUMN BILL_TYPE_DETAIL.INNER_ORDER IS '??asp??';

COMMENT ON COLUMN BILL_TYPE_DETAIL.INNER_ORDER_NOTE IS '????';

COMMENT ON TABLE BILL_TYPE_DETAIL IS '???????';

-- ----------------------------
-- Table structure for BORROW_MATERIAL
-- ----------------------------
CREATE TABLE BORROW_MATERIAL (
ID VARCHAR2(50 BYTE) VISIBLE NOT NULL,
CODE VARCHAR2(50 BYTE) VISIBLE,
SERVICE_INFORMATION_MEMBER VARCHAR2(30 BYTE) VISIBLE,
CRANT_NO VARCHAR2(100 BYTE) VISIBLE,
WAREHOUSE_LEAD_IN VARCHAR2(50 BYTE) VISIBLE,
WAREHOUSE_AREA_LEAD_IN VARCHAR2(50 BYTE) VISIBLE,
BORROW_REASON_DESC VARCHAR2(50 BYTE) VISIBLE,
REMARKS VARCHAR2(50 BYTE) VISIBLE,
EXPECTED_ARRIVAL_DATE TIMESTAMP(6) VISIBLE,
FACTORY_NUMBER VARCHAR2(50 BYTE) VISIBLE,
BORROWER VARCHAR2(50 BYTE) VISIBLE,
CREATED_DATE TIMESTAMP(6) VISIBLE,
BATCH_NO VARCHAR2(50 BYTE) VISIBLE,
BORROW_STATUS VARCHAR2(4 BYTE) VISIBLE,
LINK_MAN VARCHAR2(50 BYTE) VISIBLE,
LINK_PHONE VARCHAR2(50 BYTE) VISIBLE,
IS_BORROW VARCHAR2(4 BYTE) VISIBLE,
AUDIT_OPINION VARCHAR2(50 BYTE) VISIBLE,
AUDIT_REMARKS VARCHAR2(50 BYTE) VISIBLE,
RETURN_MATERIAL_FLAG VARCHAR2(4 BYTE) VISIBLE DEFAULT '0',
IS_PRINT VARCHAR2(4 BYTE) VISIBLE DEFAULT '0',
STATUS VARCHAR2(4 BYTE) VISIBLE,
ONE_LEVEL_AUDIT_STATUS VARCHAR2(4 BYTE) VISIBLE,
TWO_LEVEL_AUDIT_STATUS VARCHAR2(4 BYTE) VISIBLE,
AGENT_PERSION VARCHAR2(50 BYTE) VISIBLE,
ONE_LEVEL_AUDIT_DATE TIMESTAMP(6) VISIBLE,
TWO_LEVEL_AUDIT_DATE TIMESTAMP(6) VISIBLE,
INBOUND_DATE TIMESTAMP(6) VISIBLE,
DELIVERY_DATE TIMESTAMP(6) VISIBLE,
RETURN_DATE TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN BORROW_MATERIAL.ID IS 'id';

COMMENT ON COLUMN BORROW_MATERIAL.CODE IS '????';

COMMENT ON COLUMN BORROW_MATERIAL.SERVICE_INFORMATION_MEMBER IS '??????';

COMMENT ON COLUMN BORROW_MATERIAL.CRANT_NO IS '????';

COMMENT ON COLUMN BORROW_MATERIAL.WAREHOUSE_LEAD_IN IS '????';

COMMENT ON COLUMN BORROW_MATERIAL.WAREHOUSE_AREA_LEAD_IN IS '????';

COMMENT ON COLUMN BORROW_MATERIAL.BORROW_REASON_DESC IS '???????';

COMMENT ON COLUMN BORROW_MATERIAL.REMARKS IS '??';

COMMENT ON COLUMN BORROW_MATERIAL.EXPECTED_ARRIVAL_DATE IS '??????';

COMMENT ON COLUMN BORROW_MATERIAL.FACTORY_NUMBER IS '????';

COMMENT ON COLUMN BORROW_MATERIAL.BORROWER IS '???';

COMMENT ON COLUMN BORROW_MATERIAL.CREATED_DATE IS '????';

COMMENT ON COLUMN BORROW_MATERIAL.BATCH_NO IS '???';

COMMENT ON COLUMN BORROW_MATERIAL.LINK_MAN IS '???';

COMMENT ON COLUMN BORROW_MATERIAL.LINK_PHONE IS '????';

COMMENT ON COLUMN BORROW_MATERIAL.IS_BORROW IS '?/?';

COMMENT ON COLUMN BORROW_MATERIAL.AUDIT_OPINION IS '??????';

COMMENT ON COLUMN BORROW_MATERIAL.AUDIT_REMARKS IS '??????';

COMMENT ON COLUMN BORROW_MATERIAL.STATUS IS '?????2???';

COMMENT ON COLUMN BORROW_MATERIAL.ONE_LEVEL_AUDIT_STATUS IS '???????0????1?????2????';

COMMENT ON COLUMN BORROW_MATERIAL.TWO_LEVEL_AUDIT_STATUS IS '???????0????1?????2????';

COMMENT ON COLUMN BORROW_MATERIAL.ONE_LEVEL_AUDIT_DATE IS '??????';

COMMENT ON COLUMN BORROW_MATERIAL.TWO_LEVEL_AUDIT_DATE IS '??????';

COMMENT ON COLUMN BORROW_MATERIAL.INBOUND_DATE IS '????';

COMMENT ON COLUMN BORROW_MATERIAL.DELIVERY_DATE IS '????';

COMMENT ON COLUMN BORROW_MATERIAL.RETURN_DATE IS '????';

COMMENT ON TABLE BORROW_MATERIAL IS '//BORROW_MATERIAL';

-- ----------------------------
-- Table structure for BORROW_MATERIAL_DETAIL
-- ----------------------------
CREATE TABLE BORROW_MATERIAL_DETAIL (
ID VARCHAR2(50 BYTE) VISIBLE NOT NULL,
BORROW_ID VARCHAR2(50 BYTE) VISIBLE,
MATERIAL_NO VARCHAR2(100 BYTE) VISIBLE,
MATERIAL_DESC VARCHAR2(100 BYTE) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE,
REMARKS VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN BORROW_MATERIAL_DETAIL.ID IS 'ID';

COMMENT ON TABLE BORROW_MATERIAL_DETAIL IS '//BORROW_MATERIAL_DETAIL';

-- ----------------------------
-- Table structure for BOXUP_DETAIL
-- ----------------------------
CREATE TABLE BOXUP_DETAIL (
BOXUP_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
BOXUP_NO VARCHAR2(30 BYTE) VISIBLE,
BARCODE VARCHAR2(200 BYTE) VISIBLE,
MATERIATS_NO VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MATERIATS_DES VARCHAR2(150 CHAR) VISIBLE,
DELIVERY_NOTE_ID VARCHAR2(20 BYTE) VISIBLE,
DELIVERY_NOTE_NO VARCHAR2(30 BYTE) VISIBLE,
QTY NUMBER(14,3) VISIBLE NOT NULL,
REMARK VARCHAR2(200 CHAR) VISIBLE,
CREATE_TIME DATE VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(50 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
SYNC_NS_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
PURCHASE_UNIT_PRICE NUMBER(10,0) VISIBLE
);

COMMENT ON COLUMN BOXUP_DETAIL.BOXUP_ID IS '装箱id';

COMMENT ON COLUMN BOXUP_DETAIL.BOXUP_NO IS '????';

COMMENT ON COLUMN BOXUP_DETAIL.BARCODE IS '??';

COMMENT ON COLUMN BOXUP_DETAIL.MATERIATS_NO IS '物料编号';

COMMENT ON COLUMN BOXUP_DETAIL.MATERIATS_DES IS '????';

COMMENT ON COLUMN BOXUP_DETAIL.QTY IS '数量';

COMMENT ON COLUMN BOXUP_DETAIL.REMARK IS '??';

COMMENT ON COLUMN BOXUP_DETAIL.CREATE_TIME IS '????';

COMMENT ON COLUMN BOXUP_DETAIL.CREATE_ID IS '???id';

COMMENT ON COLUMN BOXUP_DETAIL.CREATE_NAME IS '???';

COMMENT ON COLUMN BOXUP_DETAIL.IS_DEL IS '是否删除';

COMMENT ON COLUMN BOXUP_DETAIL.SYNC_NS_STATUS IS '??NS???? 0 ??? 1 ???';

COMMENT ON COLUMN BOXUP_DETAIL.PURCHASE_UNIT_PRICE IS '??(???)';

COMMENT ON TABLE BOXUP_DETAIL IS '??????';

-- ----------------------------
-- Table structure for BOXUP_MAIN
-- ----------------------------
CREATE TABLE BOXUP_MAIN (
BOXUP_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
BOXUP_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
DELIVERY_RECEIPT_ID VARCHAR2(20 BYTE) VISIBLE,
DELIVERY_RECEIPT_NO VARCHAR2(30 BYTE) VISIBLE,
OWER_ID VARCHAR2(20 BYTE) VISIBLE,
PACK_CODE VARCHAR2(50 CHAR) VISIBLE,
PACK_DESC VARCHAR2(50 CHAR) VISIBLE,
DEPOT_MODE NUMBER(2,0) VISIBLE,
REMARK VARCHAR2(200 CHAR) VISIBLE,
CREATE_TIME DATE VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(50 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
WEIGHT NUMBER(11,2) VISIBLE,
ROUGH_WEIGHT NUMBER(11,2) VISIBLE,
LENGHT_NUM NUMBER(11,2) VISIBLE,
WITH_NUM NUMBER(11,2) VISIBLE,
HIGHT_NUM NUMBER(11,2) VISIBLE,
BOX_CODE VARCHAR2(50 CHAR) VISIBLE,
PACKAGE_SPEC_ID VARCHAR2(50 BYTE) VISIBLE,
TEMP_LOCATION_CODE VARCHAR2(64 BYTE) VISIBLE,
DELIVERY_STATUS NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN BOXUP_MAIN.BOXUP_ID IS '装箱id';

COMMENT ON COLUMN BOXUP_MAIN.BOXUP_NO IS '装箱编号';

COMMENT ON COLUMN BOXUP_MAIN.DELIVERY_RECEIPT_ID IS '??id';

COMMENT ON COLUMN BOXUP_MAIN.DELIVERY_RECEIPT_NO IS '????';

COMMENT ON COLUMN BOXUP_MAIN.OWER_ID IS '???';

COMMENT ON COLUMN BOXUP_MAIN.PACK_CODE IS '????';

COMMENT ON COLUMN BOXUP_MAIN.PACK_DESC IS '????';

COMMENT ON COLUMN BOXUP_MAIN.DEPOT_MODE IS '???? 0- ????1-?????';

COMMENT ON COLUMN BOXUP_MAIN.REMARK IS '??';

COMMENT ON COLUMN BOXUP_MAIN.CREATE_TIME IS '????';

COMMENT ON COLUMN BOXUP_MAIN.CREATE_ID IS '???id';

COMMENT ON COLUMN BOXUP_MAIN.CREATE_NAME IS '???';

COMMENT ON COLUMN BOXUP_MAIN.IS_DEL IS '是否删除';

COMMENT ON COLUMN BOXUP_MAIN.ROUGH_WEIGHT IS '??';

COMMENT ON COLUMN BOXUP_MAIN.LENGHT_NUM IS '??';

COMMENT ON COLUMN BOXUP_MAIN.WITH_NUM IS '??';

COMMENT ON COLUMN BOXUP_MAIN.HIGHT_NUM IS '??';

COMMENT ON COLUMN BOXUP_MAIN.BOX_CODE IS '?????';

COMMENT ON COLUMN BOXUP_MAIN.PACKAGE_SPEC_ID IS '????ID';

COMMENT ON COLUMN BOXUP_MAIN.TEMP_LOCATION_CODE IS '????';

COMMENT ON COLUMN BOXUP_MAIN.DELIVERY_STATUS IS '???? 0 ??? 1 ???';

COMMENT ON TABLE BOXUP_MAIN IS '??????';

-- ----------------------------
-- Table structure for BUY_BACK
-- ----------------------------
CREATE TABLE BUY_BACK (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
BACK_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
PURCHASE_ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
PURCHASE_ORG_NAME VARCHAR2(150 CHAR) VISIBLE NOT NULL,
SUPPLIER_ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SUPPLIER_ORG_NAME VARCHAR2(150 CHAR) VISIBLE NOT NULL,
DISPATCHER_ID VARCHAR2(30 CHAR) VISIBLE,
DISPATCHER_NAME VARCHAR2(150 CHAR) VISIBLE,
NOTE VARCHAR2(300 CHAR) VISIBLE,
SEND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
IN_STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
INVALID NUMBER(1,0) VISIBLE DEFAULT 0  ,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
FIRST_AUDIT_ID VARCHAR2(30 CHAR) VISIBLE,
FIRST_AUDIT_NAME VARCHAR2(150 CHAR) VISIBLE,
FIRST_AUDIT_DATE TIMESTAMP(6) VISIBLE,
FIRST_AUDIT_NOTE VARCHAR2(300 CHAR) VISIBLE,
SECOND_AUDIT_ID VARCHAR2(30 CHAR) VISIBLE,
SECOND_AUDIT_NAME VARCHAR2(150 CHAR) VISIBLE,
SECOND_AUDIT_DATE TIMESTAMP(6) VISIBLE,
SECOND_AUDIT_NOTE VARCHAR2(300 CHAR) VISIBLE,
CREATE_ORG_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(150 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
TOTAL_PRICE NUMBER(14,3) VISIBLE,
DEL NUMBER(1,0) VISIBLE DEFAULT 0  ,
OUT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
CREATE_OUT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
TEMP_STATUS NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN BUY_BACK.ID IS '主键id';

COMMENT ON COLUMN BUY_BACK.BACK_ORDER IS '回购单号';

COMMENT ON COLUMN BUY_BACK.PURCHASE_ORG_ID IS '购买方orgid';

COMMENT ON COLUMN BUY_BACK.PURCHASE_ORG_NAME IS '购买方名称';

COMMENT ON COLUMN BUY_BACK.SUPPLIER_ORG_ID IS '提供方orgid';

COMMENT ON COLUMN BUY_BACK.SUPPLIER_ORG_NAME IS '提供方名称';

COMMENT ON COLUMN BUY_BACK.DISPATCHER_ID IS '???id';

COMMENT ON COLUMN BUY_BACK.DISPATCHER_NAME IS '?????';

COMMENT ON COLUMN BUY_BACK.NOTE IS '??';

COMMENT ON COLUMN BUY_BACK.SEND_STATUS IS '??????? 0???1????2????';

COMMENT ON COLUMN BUY_BACK.IN_STATUS IS '???? 0???1????2????';

COMMENT ON COLUMN BUY_BACK.INVALID IS '???? 0???1???';

COMMENT ON COLUMN BUY_BACK.STATUS IS '???? 0???1???????2???????3???????4???????';

COMMENT ON COLUMN BUY_BACK.FIRST_AUDIT_ID IS '??????id';

COMMENT ON COLUMN BUY_BACK.FIRST_AUDIT_NAME IS '????????';

COMMENT ON COLUMN BUY_BACK.FIRST_AUDIT_DATE IS '???????';

COMMENT ON COLUMN BUY_BACK.FIRST_AUDIT_NOTE IS '???????';

COMMENT ON COLUMN BUY_BACK.SECOND_AUDIT_ID IS '??????id';

COMMENT ON COLUMN BUY_BACK.SECOND_AUDIT_NAME IS '????????';

COMMENT ON COLUMN BUY_BACK.SECOND_AUDIT_DATE IS '???????';

COMMENT ON COLUMN BUY_BACK.SECOND_AUDIT_NOTE IS '???????';

COMMENT ON COLUMN BUY_BACK.CREATE_ORG_ID IS '???orgid';

COMMENT ON COLUMN BUY_BACK.CREATE_ID IS '???id';

COMMENT ON COLUMN BUY_BACK.CREATE_NAME IS '?????';

COMMENT ON COLUMN BUY_BACK.CREATE_DATE IS '????';

COMMENT ON COLUMN BUY_BACK.TOTAL_PRICE IS '???';

COMMENT ON COLUMN BUY_BACK.DEL IS '???? 0?1?';

COMMENT ON COLUMN BUY_BACK.OUT_STATUS IS '???? 0???1????2????';

COMMENT ON COLUMN BUY_BACK.CREATE_OUT_STATUS IS '??????? 0???1????2????';

COMMENT ON COLUMN BUY_BACK.TEMP_STATUS IS '????????????0??????1??????';

COMMENT ON TABLE BUY_BACK IS '//BUY_BACK';

-- ----------------------------
-- Table structure for BUY_BACK_DETAIL
-- ----------------------------
CREATE TABLE BUY_BACK_DETAIL (
BILL_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(100 CHAR) VISIBLE,
MATERIALS_TYPE VARCHAR2(100 CHAR) VISIBLE,
UNIT VARCHAR2(30 CHAR) VISIBLE,
PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
TOTAL_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
SEND_QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
REAL_QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
BACK_PRICE NUMBER(14,3) VISIBLE,
BACK_QTY NUMBER(14,3) VISIBLE,
BACK_TOTAL NUMBER(20,3) VISIBLE,
REMARK VARCHAR2(150 BYTE) VISIBLE,
CREATE_OUT_QTY NUMBER(16,2) VISIBLE DEFAULT 0 ,
OUT_QTY NUMBER(16,2) VISIBLE DEFAULT 0 ,
OUT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN BUY_BACK_DETAIL.BILL_ID IS '主表id';

COMMENT ON COLUMN BUY_BACK_DETAIL.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN BUY_BACK_DETAIL.MATERIALS_DES IS '????';

COMMENT ON COLUMN BUY_BACK_DETAIL.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN BUY_BACK_DETAIL.UNIT IS '??';

COMMENT ON COLUMN BUY_BACK_DETAIL.PRICE IS '??';

COMMENT ON COLUMN BUY_BACK_DETAIL.TOTAL_PRICE IS '??';

COMMENT ON COLUMN BUY_BACK_DETAIL.QTY IS '????';

COMMENT ON COLUMN BUY_BACK_DETAIL.SEND_QTY IS '???????';

COMMENT ON COLUMN BUY_BACK_DETAIL.REAL_QTY IS '??????';

COMMENT ON COLUMN BUY_BACK_DETAIL.STATUS IS '???? 0???1????2???';

COMMENT ON COLUMN BUY_BACK_DETAIL.BACK_PRICE IS '?????';

COMMENT ON COLUMN BUY_BACK_DETAIL.BACK_QTY IS '??????';

COMMENT ON COLUMN BUY_BACK_DETAIL.BACK_TOTAL IS '????';

COMMENT ON COLUMN BUY_BACK_DETAIL.REMARK IS '??';

COMMENT ON COLUMN BUY_BACK_DETAIL.CREATE_OUT_QTY IS '???????';

COMMENT ON COLUMN BUY_BACK_DETAIL.OUT_QTY IS '????';

COMMENT ON COLUMN BUY_BACK_DETAIL.OUT_STATUS IS '???? 0???1????2????';

COMMENT ON TABLE BUY_BACK_DETAIL IS '//BUY_BACK_DETAIL';

-- ----------------------------
-- Table structure for BUY_PLAN
-- ----------------------------
CREATE TABLE BUY_PLAN (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
PLAN_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
TYPE_ID VARCHAR2(30 CHAR) VISIBLE,
TYPE_DESC VARCHAR2(100 CHAR) VISIBLE,
SEND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
AUDIT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
AUDIT_ID VARCHAR2(30 CHAR) VISIBLE,
AUDIT_NAME VARCHAR2(100 CHAR) VISIBLE,
AUDIT_DATE TIMESTAMP(6) VISIBLE,
AUDIT_NOTE VARCHAR2(300 CHAR) VISIBLE,
DEPT_ID VARCHAR2(30 CHAR) VISIBLE,
DEPT_NAME VARCHAR2(100 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(100 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
DEL NUMBER(1,0) VISIBLE DEFAULT 0  ,
NOTE VARCHAR2(300 CHAR) VISIBLE,
PURCHASE_TYPE_CHILD_ID VARCHAR2(20 BYTE) VISIBLE,
PURCHASE_TYPE_CHILD_NAME VARCHAR2(32 BYTE) VISIBLE,
SEND_TYPE_CHILD_ID VARCHAR2(20 BYTE) VISIBLE,
SEND_TYPE_CHILD_NAME VARCHAR2(32 BYTE) VISIBLE,
FINISH_STATE VARCHAR2(4 BYTE) VISIBLE DEFAULT '0',
SUPPLIER_NAME VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN BUY_PLAN.ID IS '主键id';

COMMENT ON COLUMN BUY_PLAN.PLAN_ORDER IS '计划单号';

COMMENT ON COLUMN BUY_PLAN.TYPE_ID IS '????id';

COMMENT ON COLUMN BUY_PLAN.TYPE_DESC IS '??????';

COMMENT ON COLUMN BUY_PLAN.SEND_STATUS IS '???????? 0???1?????2???';

COMMENT ON COLUMN BUY_PLAN.AUDIT_STATUS IS '???? 0???1????2????,-1?????????';

COMMENT ON COLUMN BUY_PLAN.AUDIT_ID IS '???id';

COMMENT ON COLUMN BUY_PLAN.AUDIT_NAME IS '?????';

COMMENT ON COLUMN BUY_PLAN.AUDIT_DATE IS '????';

COMMENT ON COLUMN BUY_PLAN.AUDIT_NOTE IS '????';

COMMENT ON COLUMN BUY_PLAN.DEPT_ID IS '??id';

COMMENT ON COLUMN BUY_PLAN.DEPT_NAME IS '????';

COMMENT ON COLUMN BUY_PLAN.CREATE_ID IS '???id';

COMMENT ON COLUMN BUY_PLAN.CREATE_NAME IS '?????';

COMMENT ON COLUMN BUY_PLAN.CREATE_DATE IS '????';

COMMENT ON COLUMN BUY_PLAN.ORG_ID IS '??orgid';

COMMENT ON COLUMN BUY_PLAN.DEL IS '???? 0?1?';

COMMENT ON COLUMN BUY_PLAN.NOTE IS '??';

COMMENT ON COLUMN BUY_PLAN.PURCHASE_TYPE_CHILD_ID IS '????????';

COMMENT ON COLUMN BUY_PLAN.PURCHASE_TYPE_CHILD_NAME IS '????????';

COMMENT ON COLUMN BUY_PLAN.SEND_TYPE_CHILD_ID IS '????????';

COMMENT ON COLUMN BUY_PLAN.SEND_TYPE_CHILD_NAME IS '????????';

COMMENT ON COLUMN BUY_PLAN.FINISH_STATE IS '???? 0??? 1???? 2???';

COMMENT ON COLUMN BUY_PLAN.SUPPLIER_NAME IS '???';

COMMENT ON TABLE BUY_PLAN IS '//BUY_PLAN';

-- ----------------------------
-- Table structure for BUY_PLAN_DETAIL
-- ----------------------------
CREATE TABLE BUY_PLAN_DETAIL (
BILL_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(100 CHAR) VISIBLE,
MATERIALS_TYPE VARCHAR2(100 CHAR) VISIBLE,
UNIT VARCHAR2(30 CHAR) VISIBLE,
PRICE NUMBER(14,3) VISIBLE,
TOTAL_PRICE NUMBER(14,3) VISIBLE,
QTY NUMBER(14,3) VISIBLE,
SOURCE_ORDER VARCHAR2(30 CHAR) VISIBLE,
PURCHASE_GROUP VARCHAR2(60 CHAR) VISIBLE,
REPLACE_MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE,
REPLACE_MATERIALS_DES VARCHAR2(60 CHAR) VISIBLE,
IS_GENERATE NUMBER(1,0) VISIBLE DEFAULT 0,
SALES_RATE NUMBER(9,0) VISIBLE DEFAULT 0,
DELIVERY_SPEND NUMBER(9,2) VISIBLE DEFAULT 0,
REMARK VARCHAR2(50 BYTE) VISIBLE,
FINISH_STATE VARCHAR2(4 BYTE) VISIBLE DEFAULT '0',
SUPPLIER_NAME VARCHAR2(100 BYTE) VISIBLE,
DELIVERY_DATE TIMESTAMP(7) VISIBLE
);

COMMENT ON COLUMN BUY_PLAN_DETAIL.BILL_ID IS '主表id';

COMMENT ON COLUMN BUY_PLAN_DETAIL.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN BUY_PLAN_DETAIL.MATERIALS_DES IS '????';

COMMENT ON COLUMN BUY_PLAN_DETAIL.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN BUY_PLAN_DETAIL.UNIT IS '????';

COMMENT ON COLUMN BUY_PLAN_DETAIL.PRICE IS '??';

COMMENT ON COLUMN BUY_PLAN_DETAIL.TOTAL_PRICE IS '??';

COMMENT ON COLUMN BUY_PLAN_DETAIL.QTY IS '??';

COMMENT ON COLUMN BUY_PLAN_DETAIL.SOURCE_ORDER IS '?????';

COMMENT ON COLUMN BUY_PLAN_DETAIL.PURCHASE_GROUP IS '???';

COMMENT ON COLUMN BUY_PLAN_DETAIL.REPLACE_MATERIALS_NO IS '??????';

COMMENT ON COLUMN BUY_PLAN_DETAIL.REPLACE_MATERIALS_DES IS '??????';

COMMENT ON COLUMN BUY_PLAN_DETAIL.IS_GENERATE IS '???????';

COMMENT ON COLUMN BUY_PLAN_DETAIL.SALES_RATE IS '????';

COMMENT ON COLUMN BUY_PLAN_DETAIL.DELIVERY_SPEND IS '???????????????';

COMMENT ON COLUMN BUY_PLAN_DETAIL.REMARK IS '??';

COMMENT ON COLUMN BUY_PLAN_DETAIL.FINISH_STATE IS '???? 0??? 1???';

COMMENT ON COLUMN BUY_PLAN_DETAIL.SUPPLIER_NAME IS '???';

COMMENT ON COLUMN BUY_PLAN_DETAIL.DELIVERY_DATE IS '????';

COMMENT ON TABLE BUY_PLAN_DETAIL IS '//BUY_PLAN_DETAIL';

-- ----------------------------
-- Table structure for CLIENT_RECEIVER_INFO
-- ----------------------------
CREATE TABLE CLIENT_RECEIVER_INFO (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
DEALER_ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
RECEIVER_NAME VARCHAR2(50 BYTE) VISIBLE,
PHONE VARCHAR2(20 BYTE) VISIBLE,
ADDRESS VARCHAR2(500 BYTE) VISIBLE,
ADDRESS_CODE VARCHAR2(100 BYTE) VISIBLE
);

COMMENT ON COLUMN CLIENT_RECEIVER_INFO.ID IS '主键';

COMMENT ON COLUMN CLIENT_RECEIVER_INFO.ORG_ID IS '公司ID，对应company_info.org_id';

COMMENT ON COLUMN CLIENT_RECEIVER_INFO.DEALER_ORG_ID IS '客户公司ID，对应company_dealer.dealer_org_id';

COMMENT ON COLUMN CLIENT_RECEIVER_INFO.RECEIVER_NAME IS '?????';

COMMENT ON COLUMN CLIENT_RECEIVER_INFO.PHONE IS '?????';

COMMENT ON COLUMN CLIENT_RECEIVER_INFO.ADDRESS IS '????';

COMMENT ON COLUMN CLIENT_RECEIVER_INFO.ADDRESS_CODE IS '????';

COMMENT ON TABLE CLIENT_RECEIVER_INFO IS '???????';

-- ----------------------------
-- Table structure for CM_RESTORE
-- ----------------------------
CREATE TABLE CM_RESTORE (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
RESTORE_ORDER VARCHAR2(30 CHAR) VISIBLE,
SPLIT_ORDER VARCHAR2(30 CHAR) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0  ,
RESTORE_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0  ,
RESTORE_STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(150 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN CM_RESTORE.ID IS '主键id';

COMMENT ON COLUMN CM_RESTORE.RESTORE_ORDER IS '拆件恢复单号';

COMMENT ON COLUMN CM_RESTORE.SPLIT_ORDER IS '拆件单号';

COMMENT ON COLUMN CM_RESTORE.AMOUNT IS '需要恢复的原件数量';

COMMENT ON COLUMN CM_RESTORE.RESTORE_AMOUNT IS '????????';

COMMENT ON COLUMN CM_RESTORE.RESTORE_STATUS IS '???? 0???1????2????';

COMMENT ON COLUMN CM_RESTORE.CREATE_ID IS '???id';

COMMENT ON COLUMN CM_RESTORE.CREATE_NAME IS '?????';

COMMENT ON COLUMN CM_RESTORE.CREATE_DATE IS '????';

COMMENT ON COLUMN CM_RESTORE.IS_DEL IS '???? 0?1?';

COMMENT ON TABLE CM_RESTORE IS '???????';

-- ----------------------------
-- Table structure for CM_RESTORE_DETAIL
-- ----------------------------
CREATE TABLE CM_RESTORE_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MAIN_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
BARCODE VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(150 CHAR) VISIBLE,
MATERIALS_TYPE VARCHAR2(100 CHAR) VISIBLE,
UNIT VARCHAR2(100 CHAR) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0  ,
RESTORE_STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
RESTORE_DATE TIMESTAMP(6) VISIBLE,
RESTORE_ID VARCHAR2(30 CHAR) VISIBLE,
RESTORE_NAME VARCHAR2(150 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(150 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN CM_RESTORE_DETAIL.ID IS '主键id';

COMMENT ON COLUMN CM_RESTORE_DETAIL.MAIN_ID IS '主表id';

COMMENT ON COLUMN CM_RESTORE_DETAIL.BARCODE IS '原件物料条码';

COMMENT ON COLUMN CM_RESTORE_DETAIL.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN CM_RESTORE_DETAIL.MATERIALS_DES IS '????';

COMMENT ON COLUMN CM_RESTORE_DETAIL.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN CM_RESTORE_DETAIL.UNIT IS '??';

COMMENT ON COLUMN CM_RESTORE_DETAIL.AMOUNT IS '??';

COMMENT ON COLUMN CM_RESTORE_DETAIL.RESTORE_STATUS IS '???? 0???1???';

COMMENT ON COLUMN CM_RESTORE_DETAIL.RESTORE_DATE IS '????';

COMMENT ON COLUMN CM_RESTORE_DETAIL.RESTORE_ID IS '???id';

COMMENT ON COLUMN CM_RESTORE_DETAIL.RESTORE_NAME IS '?????';

COMMENT ON COLUMN CM_RESTORE_DETAIL.CREATE_ID IS '???id';

COMMENT ON COLUMN CM_RESTORE_DETAIL.CREATE_NAME IS '?????';

COMMENT ON COLUMN CM_RESTORE_DETAIL.CREATE_DATE IS '????';

COMMENT ON TABLE CM_RESTORE_DETAIL IS '???????';

-- ----------------------------
-- Table structure for CM_SCORE_RULE
-- ----------------------------
CREATE TABLE CM_SCORE_RULE (
ID VARCHAR2(50 BYTE) VISIBLE NOT NULL,
TYPE_ID NUMBER VISIBLE,
REMARK VARCHAR2(300 BYTE) VISIBLE,
NUM NUMBER VISIBLE,
CREATE_TIME DATE VISIBLE DEFAULT NULL,
CREATOR_ID VARCHAR2(50 BYTE) VISIBLE DEFAULT '0',
UPDATE_TIME DATE VISIBLE DEFAULT NULL,
UPDATOR_ID VARCHAR2(50 BYTE) VISIBLE DEFAULT '0',
IS_DELETED NUMBER VISIBLE DEFAULT 0,
DELETE_TIME DATE VISIBLE DEFAULT NULL,
DELETOR_ID VARCHAR2(50 BYTE) VISIBLE DEFAULT '0',
CREATOR_NAME VARCHAR2(50 BYTE) VISIBLE,
UPDATOR_NAME VARCHAR2(50 BYTE) VISIBLE,
DELETOR_NAME VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN CM_SCORE_RULE.ID IS 'ID';

COMMENT ON COLUMN CM_SCORE_RULE.TYPE_ID IS '??????SCORE_TYPE?1?????';

COMMENT ON COLUMN CM_SCORE_RULE.REMARK IS '????';

COMMENT ON COLUMN CM_SCORE_RULE.NUM IS '??';

COMMENT ON COLUMN CM_SCORE_RULE.CREATE_TIME IS '????';

COMMENT ON COLUMN CM_SCORE_RULE.CREATOR_ID IS '???';

COMMENT ON COLUMN CM_SCORE_RULE.UPDATE_TIME IS '????';

COMMENT ON COLUMN CM_SCORE_RULE.UPDATOR_ID IS '???';

COMMENT ON COLUMN CM_SCORE_RULE.IS_DELETED IS '????0.???1.???';

COMMENT ON COLUMN CM_SCORE_RULE.DELETE_TIME IS '????';

COMMENT ON COLUMN CM_SCORE_RULE.DELETOR_ID IS '???';

COMMENT ON COLUMN CM_SCORE_RULE.CREATOR_NAME IS '???';

COMMENT ON COLUMN CM_SCORE_RULE.UPDATOR_NAME IS '???';

COMMENT ON COLUMN CM_SCORE_RULE.DELETOR_NAME IS '???';

COMMENT ON TABLE CM_SCORE_RULE IS '????';

-- ----------------------------
-- Table structure for CM_SENSITIVE_WORDS
-- ----------------------------
CREATE TABLE CM_SENSITIVE_WORDS (
ID VARCHAR2(50 BYTE) VISIBLE NOT NULL,
WORDS VARCHAR2(100 BYTE) VISIBLE,
TYPE_ID NUMBER VISIBLE,
CREATE_TIME DATE VISIBLE DEFAULT NULL,
CREATOR_ID VARCHAR2(50 BYTE) VISIBLE DEFAULT '0',
UPDATE_TIME DATE VISIBLE DEFAULT NULL,
UPDATOR_ID VARCHAR2(50 BYTE) VISIBLE DEFAULT '0',
IS_DELETED NUMBER VISIBLE DEFAULT 0,
DELETE_TIME DATE VISIBLE DEFAULT NULL,
DELETOR_ID VARCHAR2(50 BYTE) VISIBLE DEFAULT '0',
CREATOR_NAME VARCHAR2(50 BYTE) VISIBLE,
UPDATOR_NAME VARCHAR2(50 BYTE) VISIBLE,
DELETOR_NAME VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN CM_SENSITIVE_WORDS.ID IS 'ID';

COMMENT ON COLUMN CM_SENSITIVE_WORDS.WORDS IS '???';

COMMENT ON COLUMN CM_SENSITIVE_WORDS.TYPE_ID IS '??????SENSITIVE_TYPE?';

COMMENT ON COLUMN CM_SENSITIVE_WORDS.CREATE_TIME IS '????';

COMMENT ON COLUMN CM_SENSITIVE_WORDS.CREATOR_ID IS '???';

COMMENT ON COLUMN CM_SENSITIVE_WORDS.UPDATE_TIME IS '????';

COMMENT ON COLUMN CM_SENSITIVE_WORDS.UPDATOR_ID IS '???';

COMMENT ON COLUMN CM_SENSITIVE_WORDS.IS_DELETED IS '????0.???1.???';

COMMENT ON COLUMN CM_SENSITIVE_WORDS.DELETE_TIME IS '????';

COMMENT ON COLUMN CM_SENSITIVE_WORDS.DELETOR_ID IS '???';

COMMENT ON COLUMN CM_SENSITIVE_WORDS.CREATOR_NAME IS '???';

COMMENT ON COLUMN CM_SENSITIVE_WORDS.UPDATOR_NAME IS '???';

COMMENT ON COLUMN CM_SENSITIVE_WORDS.DELETOR_NAME IS '???';

COMMENT ON TABLE CM_SENSITIVE_WORDS IS '???';

-- ----------------------------
-- Table structure for CM_SLIDE
-- ----------------------------
CREATE TABLE CM_SLIDE (
ID VARCHAR2(50 BYTE) VISIBLE NOT NULL,
TITLE VARCHAR2(100 BYTE) VISIBLE,
TYPE_ID NUMBER VISIBLE,
IMG_URL VARCHAR2(200 BYTE) VISIBLE,
EXT_ID VARCHAR2(50 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE DEFAULT NULL,
CREATOR_ID VARCHAR2(50 BYTE) VISIBLE DEFAULT '0',
UPDATE_TIME DATE VISIBLE DEFAULT NULL,
UPDATOR_ID VARCHAR2(50 BYTE) VISIBLE DEFAULT '0',
IS_DELETED NUMBER VISIBLE DEFAULT 0,
DELETE_TIME DATE VISIBLE DEFAULT NULL,
DELETOR_ID VARCHAR2(50 BYTE) VISIBLE DEFAULT '0',
CREATOR_NAME VARCHAR2(50 BYTE) VISIBLE,
UPDATOR_NAME VARCHAR2(50 BYTE) VISIBLE,
DELETOR_NAME VARCHAR2(50 BYTE) VISIBLE,
SORT_ID NUMBER VISIBLE
);

COMMENT ON COLUMN CM_SLIDE.ID IS 'ID';

COMMENT ON COLUMN CM_SLIDE.TITLE IS '??';

COMMENT ON COLUMN CM_SLIDE.TYPE_ID IS '??????SLIDE_TYPE?';

COMMENT ON COLUMN CM_SLIDE.IMG_URL IS '??';

COMMENT ON COLUMN CM_SLIDE.EXT_ID IS '??ID?????';

COMMENT ON COLUMN CM_SLIDE.CREATE_TIME IS '????';

COMMENT ON COLUMN CM_SLIDE.CREATOR_ID IS '???';

COMMENT ON COLUMN CM_SLIDE.UPDATE_TIME IS '????';

COMMENT ON COLUMN CM_SLIDE.UPDATOR_ID IS '???';

COMMENT ON COLUMN CM_SLIDE.IS_DELETED IS '????0.???1.???';

COMMENT ON COLUMN CM_SLIDE.DELETE_TIME IS '????';

COMMENT ON COLUMN CM_SLIDE.DELETOR_ID IS '???';

COMMENT ON COLUMN CM_SLIDE.CREATOR_NAME IS '???';

COMMENT ON COLUMN CM_SLIDE.UPDATOR_NAME IS '???';

COMMENT ON COLUMN CM_SLIDE.DELETOR_NAME IS '???';

COMMENT ON COLUMN CM_SLIDE.SORT_ID IS '??';

COMMENT ON TABLE CM_SLIDE IS '???-??';

-- ----------------------------
-- Table structure for CM_SPLIT
-- ----------------------------
CREATE TABLE CM_SPLIT (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SPLIT_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SPLIT_TYPE NUMBER(1,0) VISIBLE DEFAULT 0    NOT NULL,
SPLIT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0    NOT NULL,
RESTORE_STATUS NUMBER(1,0) VISIBLE DEFAULT 0    NOT NULL,
AUDIT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0    NOT NULL,
NOTE VARCHAR2(255 CHAR) VISIBLE,
FIRST_AUDIT_ID VARCHAR2(30 CHAR) VISIBLE,
FIRST_AUDIT_NAME VARCHAR2(150 CHAR) VISIBLE,
FIRST_AUDIT_NOTE VARCHAR2(255 CHAR) VISIBLE,
FIRST_AUDIT_DATE TIMESTAMP(6) VISIBLE,
SECOND_AUDIT_ID VARCHAR2(30 CHAR) VISIBLE,
SECOND_AUDIT_NAME VARCHAR2(150 CHAR) VISIBLE,
SECOND_AUDIT_NOTE VARCHAR2(255 CHAR) VISIBLE,
SECOND_AUDIT_DATE TIMESTAMP(6) VISIBLE,
THIRD_AUDIT_ID VARCHAR2(30 CHAR) VISIBLE,
THIRD_AUDIT_NAME VARCHAR2(150 CHAR) VISIBLE,
THIRD_AUDIT_NOTE VARCHAR2(255 CHAR) VISIBLE,
THIRD_AUDIT_DATE TIMESTAMP(6) VISIBLE,
FOURTH_AUDIT_ID VARCHAR2(30 CHAR) VISIBLE,
FOURTH_AUDIT_NAME VARCHAR2(150 CHAR) VISIBLE,
FOURTH_AUDIT_NOTE VARCHAR2(255 CHAR) VISIBLE,
FOURTH_AUDIT_DATE TIMESTAMP(6) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(150 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
DEPT_ID VARCHAR2(30 CHAR) VISIBLE,
DEPT_NAME VARCHAR2(150 CHAR) VISIBLE,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN CM_SPLIT.ID IS '主键id';

COMMENT ON COLUMN CM_SPLIT.SPLIT_ORDER IS '拆件单号';

COMMENT ON COLUMN CM_SPLIT.SPLIT_TYPE IS '拆件类型 0总成件1整机';

COMMENT ON COLUMN CM_SPLIT.SPLIT_STATUS IS '拆件状态 0未开始1部分拆件2已拆件';

COMMENT ON COLUMN CM_SPLIT.RESTORE_STATUS IS '原件恢复状态 0未恢复1部分恢复2已恢复';

COMMENT ON COLUMN CM_SPLIT.AUDIT_STATUS IS '审核状态 0待审核1第一步审核通过2第一步审核拒绝3第二步审核通过4第二步审核拒绝5第三步审核通过6第三步审核拒绝7第四步审核通过8第四步审核拒绝';

COMMENT ON COLUMN CM_SPLIT.NOTE IS '??';

COMMENT ON COLUMN CM_SPLIT.FIRST_AUDIT_ID IS '??????id';

COMMENT ON COLUMN CM_SPLIT.FIRST_AUDIT_NAME IS '????????';

COMMENT ON COLUMN CM_SPLIT.FIRST_AUDIT_NOTE IS '???????';

COMMENT ON COLUMN CM_SPLIT.FIRST_AUDIT_DATE IS '???????';

COMMENT ON COLUMN CM_SPLIT.SECOND_AUDIT_ID IS '??????id';

COMMENT ON COLUMN CM_SPLIT.SECOND_AUDIT_NAME IS '????????';

COMMENT ON COLUMN CM_SPLIT.SECOND_AUDIT_NOTE IS '????????';

COMMENT ON COLUMN CM_SPLIT.SECOND_AUDIT_DATE IS '???????';

COMMENT ON COLUMN CM_SPLIT.THIRD_AUDIT_ID IS '??????id';

COMMENT ON COLUMN CM_SPLIT.THIRD_AUDIT_NAME IS '????????';

COMMENT ON COLUMN CM_SPLIT.THIRD_AUDIT_NOTE IS '???????';

COMMENT ON COLUMN CM_SPLIT.THIRD_AUDIT_DATE IS '???????';

COMMENT ON COLUMN CM_SPLIT.FOURTH_AUDIT_ID IS '??????id';

COMMENT ON COLUMN CM_SPLIT.FOURTH_AUDIT_NAME IS '????????';

COMMENT ON COLUMN CM_SPLIT.FOURTH_AUDIT_NOTE IS '???????';

COMMENT ON COLUMN CM_SPLIT.FOURTH_AUDIT_DATE IS '???????';

COMMENT ON COLUMN CM_SPLIT.CREATE_ID IS '???id';

COMMENT ON COLUMN CM_SPLIT.CREATE_NAME IS '?????';

COMMENT ON COLUMN CM_SPLIT.CREATE_DATE IS '????';

COMMENT ON COLUMN CM_SPLIT.DEPT_ID IS '??id';

COMMENT ON COLUMN CM_SPLIT.DEPT_NAME IS '????';

COMMENT ON COLUMN CM_SPLIT.ORG_ID IS '??orgid';

COMMENT ON COLUMN CM_SPLIT.IS_DEL IS '???? 0?1?';

COMMENT ON TABLE CM_SPLIT IS '?????';

-- ----------------------------
-- Table structure for CM_SPLIT_DETAIL
-- ----------------------------
CREATE TABLE CM_SPLIT_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MAIN_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MAT_TYPE NUMBER(1,0) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE,
MATERIALS_DES VARCHAR2(150 CHAR) VISIBLE,
MATERIALS_TYPE VARCHAR2(100 CHAR) VISIBLE,
UNIT VARCHAR2(30 CHAR) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0  ,
SPLIT_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0  ,
RESTORE_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0  ,
IN_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0  ,
OUT_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN CM_SPLIT_DETAIL.ID IS '主键id';

COMMENT ON COLUMN CM_SPLIT_DETAIL.MAIN_ID IS '主表id';

COMMENT ON COLUMN CM_SPLIT_DETAIL.MAT_TYPE IS '类型 0原件 1拆件';

COMMENT ON COLUMN CM_SPLIT_DETAIL.MATERIALS_NO IS '????';

COMMENT ON COLUMN CM_SPLIT_DETAIL.MATERIALS_DES IS '????';

COMMENT ON COLUMN CM_SPLIT_DETAIL.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN CM_SPLIT_DETAIL.UNIT IS '??';

COMMENT ON COLUMN CM_SPLIT_DETAIL.AMOUNT IS '??';

COMMENT ON COLUMN CM_SPLIT_DETAIL.SPLIT_AMOUNT IS '?????';

COMMENT ON COLUMN CM_SPLIT_DETAIL.RESTORE_AMOUNT IS '??????????';

COMMENT ON COLUMN CM_SPLIT_DETAIL.IN_AMOUNT IS '??????????';

COMMENT ON COLUMN CM_SPLIT_DETAIL.OUT_AMOUNT IS '??????????';

COMMENT ON TABLE CM_SPLIT_DETAIL IS '??????';

-- ----------------------------
-- Table structure for CM_SPLIT_RECORD
-- ----------------------------
CREATE TABLE CM_SPLIT_RECORD (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SPLIT_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SOURCE_BARCODE VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SOURCE_MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE,
SOURCE_MATERIALS_DES VARCHAR2(150 CHAR) VISIBLE,
SOURCE_AMOUNT NUMBER(14,3) VISIBLE,
SPLIT_BARCODE VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SPLIT_MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE,
SPLIT_MATERIALS_DES VARCHAR2(150 CHAR) VISIBLE,
SPLIT_AMOUNT NUMBER(14,3) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(150 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
ORG_ID VARCHAR2(30 CHAR) VISIBLE
);

COMMENT ON COLUMN CM_SPLIT_RECORD.ID IS '主键id';

COMMENT ON COLUMN CM_SPLIT_RECORD.SPLIT_ORDER IS '拆件单号';

COMMENT ON COLUMN CM_SPLIT_RECORD.SOURCE_BARCODE IS '原件条码';

COMMENT ON COLUMN CM_SPLIT_RECORD.SOURCE_MATERIALS_NO IS '??????';

COMMENT ON COLUMN CM_SPLIT_RECORD.SOURCE_MATERIALS_DES IS '??????';

COMMENT ON COLUMN CM_SPLIT_RECORD.SOURCE_AMOUNT IS '??????';

COMMENT ON COLUMN CM_SPLIT_RECORD.SPLIT_BARCODE IS '被拆件条码';

COMMENT ON COLUMN CM_SPLIT_RECORD.SPLIT_MATERIALS_NO IS '???????';

COMMENT ON COLUMN CM_SPLIT_RECORD.SPLIT_MATERIALS_DES IS '???????';

COMMENT ON COLUMN CM_SPLIT_RECORD.SPLIT_AMOUNT IS '???????';

COMMENT ON COLUMN CM_SPLIT_RECORD.CREATE_ID IS '???id';

COMMENT ON COLUMN CM_SPLIT_RECORD.CREATE_NAME IS '?????';

COMMENT ON COLUMN CM_SPLIT_RECORD.CREATE_DATE IS '????';

COMMENT ON COLUMN CM_SPLIT_RECORD.ORG_ID IS '??orgid';

COMMENT ON TABLE CM_SPLIT_RECORD IS '?????';

-- ----------------------------
-- Table structure for COM_SAFETY_STOCK_INFO
-- ----------------------------
CREATE TABLE COM_SAFETY_STOCK_INFO (
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
PLAN_CODE NUMBER(2,0) VISIBLE,
CAL_FLAG NUMBER(1,0) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(50 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_NAME VARCHAR2(50 BYTE) VISIBLE,
UPDATE_TIME DATE VISIBLE
);

COMMENT ON COLUMN COM_SAFETY_STOCK_INFO.ORG_ID IS '??ID';

COMMENT ON COLUMN COM_SAFETY_STOCK_INFO.PLAN_CODE IS '?????1?????2????';

COMMENT ON COLUMN COM_SAFETY_STOCK_INFO.CAL_FLAG IS '?????????0?????1???';

COMMENT ON COLUMN COM_SAFETY_STOCK_INFO.CREATE_ID IS '???ID';

COMMENT ON COLUMN COM_SAFETY_STOCK_INFO.CREATE_NAME IS '?????';

COMMENT ON COLUMN COM_SAFETY_STOCK_INFO.CREATE_TIME IS '????';

COMMENT ON COLUMN COM_SAFETY_STOCK_INFO.UPDATE_ID IS '???ID';

COMMENT ON COLUMN COM_SAFETY_STOCK_INFO.UPDATE_NAME IS '?????';

COMMENT ON COLUMN COM_SAFETY_STOCK_INFO.UPDATE_TIME IS '????';

COMMENT ON TABLE COM_SAFETY_STOCK_INFO IS '????????';

-- ----------------------------
-- Table structure for COMPANY_APPLY_RECORD
-- ----------------------------
CREATE TABLE COMPANY_APPLY_RECORD (
ID NUMBER VISIBLE NOT NULL,
ORG_CODE VARCHAR2(20 BYTE) VISIBLE NOT NULL,
INVITATION_CODE VARCHAR2(20 BYTE) VISIBLE,
COMPANY_NAME VARCHAR2(200 BYTE) VISIBLE NOT NULL,
CREATE_DATE DATE VISIBLE,
AUDIT_NAME VARCHAR2(200 BYTE) VISIBLE,
AUDIT_RECORD VARCHAR2(1000 BYTE) VISIBLE,
AUDIT_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
STATUS NUMBER VISIBLE,
SENDER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
RECEIVER_ORG_ID VARCHAR2(20 BYTE) VISIBLE
);

COMMENT ON COLUMN COMPANY_APPLY_RECORD.ORG_CODE IS '企业组织机构编码';

COMMENT ON COLUMN COMPANY_APPLY_RECORD.INVITATION_CODE IS '邀请码';

COMMENT ON COLUMN COMPANY_APPLY_RECORD.COMPANY_NAME IS '企业名称';

COMMENT ON COLUMN COMPANY_APPLY_RECORD.CREATE_DATE IS '添加时间';

COMMENT ON COLUMN COMPANY_APPLY_RECORD.AUDIT_NAME IS '审核人';

COMMENT ON COLUMN COMPANY_APPLY_RECORD.AUDIT_RECORD IS '当前审核信息';

COMMENT ON COLUMN COMPANY_APPLY_RECORD.AUDIT_ID IS '审核人ID';

COMMENT ON COLUMN COMPANY_APPLY_RECORD.UPDATE_DATE IS '审核时间';

COMMENT ON COLUMN COMPANY_APPLY_RECORD.STATUS IS '审核状态（1待审核，2审核驳回，3审核通过）';

COMMENT ON COLUMN COMPANY_APPLY_RECORD.SENDER_ORG_ID IS '发送方orgId(企业客户关系表上游企业ID)';

COMMENT ON COLUMN COMPANY_APPLY_RECORD.RECEIVER_ORG_ID IS '接收方orgId(企业客户关系表下游企业ID)';

COMMENT ON TABLE COMPANY_APPLY_RECORD IS '企业申请记录表';

-- ----------------------------
-- Table structure for COMPANY_DEALER
-- ----------------------------
CREATE TABLE COMPANY_DEALER (
ID NUMBER(20,0) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
DEALER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
DEALER_CODE VARCHAR2(20 CHAR) VISIBLE,
COMPANY_NAME VARCHAR2(200 CHAR) VISIBLE,
SHORT_NAME VARCHAR2(100 CHAR) VISIBLE,
ADDRESS VARCHAR2(200 CHAR) VISIBLE,
ZIP VARCHAR2(20 CHAR) VISIBLE,
FAX VARCHAR2(20 CHAR) VISIBLE,
CONTACT VARCHAR2(40 CHAR) VISIBLE,
CONTACT_TEL VARCHAR2(22 BYTE) VISIBLE,
DEALER_CLASS_ID NUMBER(10,0) VISIBLE,
IS_PLAT_COMPANY NUMBER(1,0) VISIBLE,
PLAT_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_DATE DATE VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE,
DEPARTEMNT_ID VARCHAR2(20 BYTE) VISIBLE,
OWER_ID VARCHAR2(20 BYTE) VISIBLE,
APPLY_STATUS NUMBER VISIBLE DEFAULT 1,
CUSTOMER_GROUP VARCHAR2(2 CHAR) VISIBLE DEFAULT '',
PRICE_GROUP VARCHAR2(2 CHAR) VISIBLE DEFAULT '',
SALE_GROUP VARCHAR2(3 CHAR) VISIBLE DEFAULT '',
SALE_DEPT VARCHAR2(4 CHAR) VISIBLE DEFAULT '',
IS_STORAGE NUMBER(1,0) VISIBLE DEFAULT 0,
TOTAL_LIMIT NUMBER(14,3) VISIBLE DEFAULT 0,
USED_LIMIT NUMBER(14,3) VISIBLE DEFAULT 0,
ENABLE_LIMIT NUMBER(1,0) VISIBLE DEFAULT 0,
IS_DIRECT NUMBER(1,0) VISIBLE DEFAULT 0,
DIRECT_LIMIT NUMBER(14,3) VISIBLE DEFAULT 0,
DEALER_LEVEL_ID VARCHAR2(20 BYTE) VISIBLE,
DEALER_LEVEL_NAME VARCHAR2(64 CHAR) VISIBLE,
NORMAL_FLAG NUMBER(1,0) VISIBLE,
BIG_CLIENT_FLAG NUMBER(1,0) VISIBLE,
DEALER_CRM_CODE VARCHAR2(50 BYTE) VISIBLE,
COUNTRY VARCHAR2(50 BYTE) VISIBLE,
DEPT_ID VARCHAR2(20 BYTE) VISIBLE,
TAX_RATE NUMBER(8,4) VISIBLE,
DEALER_LEVEL NUMBER(10,0) VISIBLE,
DEALER_TYPE NUMBER(10,0) VISIBLE,
MARKETING_CENTER_CODE VARCHAR2(255 BYTE) VISIBLE,
MARKETING_CENTER_NAME VARCHAR2(255 BYTE) VISIBLE,
MARKETING_CENTER_CODE2 VARCHAR2(255 BYTE) VISIBLE,
MARKETING_CENTER_NAME2 VARCHAR2(255 BYTE) VISIBLE,
DETAIL_ADDR VARCHAR2(255 BYTE) VISIBLE,
ZB VARCHAR2(50 BYTE) VISIBLE,
YHBH VARCHAR2(200 BYTE) VISIBLE,
YHMC VARCHAR2(200 BYTE) VISIBLE,
CREDIT_AMOUNT NUMBER(11,3) VISIBLE,
REMAIN_DELIVERY_AMOUNT NUMBER(11,3) VISIBLE,
CREDIT_SYNC_FLAG VARCHAR2(20 BYTE) VISIBLE DEFAULT 2,
NO_LIMIT_MIN_FLAG VARCHAR2(1 BYTE) VISIBLE DEFAULT 0,
STOP_FLAG VARCHAR2(1 BYTE) VISIBLE DEFAULT 0,
PROVINCE VARCHAR2(50 BYTE) VISIBLE,
CITY VARCHAR2(50 BYTE) VISIBLE,
IS_ALLOW_FWZ_ORDER NUMBER(1,0) VISIBLE DEFAULT NULL
);

COMMENT ON COLUMN COMPANY_DEALER.ID IS 'id';

COMMENT ON COLUMN COMPANY_DEALER.ORG_ID IS '????';

COMMENT ON COLUMN COMPANY_DEALER.DEALER_ORG_ID IS '????';

COMMENT ON COLUMN COMPANY_DEALER.DEALER_CODE IS '????';

COMMENT ON COLUMN COMPANY_DEALER.COMPANY_NAME IS '??????';

COMMENT ON COLUMN COMPANY_DEALER.SHORT_NAME IS '????';

COMMENT ON COLUMN COMPANY_DEALER.ADDRESS IS '??';

COMMENT ON COLUMN COMPANY_DEALER.ZIP IS '??';

COMMENT ON COLUMN COMPANY_DEALER.FAX IS '??';

COMMENT ON COLUMN COMPANY_DEALER.CONTACT IS '?????';

COMMENT ON COLUMN COMPANY_DEALER.CONTACT_TEL IS '??????';

COMMENT ON COLUMN COMPANY_DEALER.DEALER_CLASS_ID IS '????id';

COMMENT ON COLUMN COMPANY_DEALER.IS_PLAT_COMPANY IS '??????';

COMMENT ON COLUMN COMPANY_DEALER.PLAT_ORG_ID IS '?????';

COMMENT ON COLUMN COMPANY_DEALER.CREATE_DATE IS '????';

COMMENT ON COLUMN COMPANY_DEALER.CREATE_ID IS '???';

COMMENT ON COLUMN COMPANY_DEALER.UPDATE_DATE IS '????';

COMMENT ON COLUMN COMPANY_DEALER.UPDATE_ID IS '???';

COMMENT ON COLUMN COMPANY_DEALER.IS_DEL IS '????';

COMMENT ON COLUMN COMPANY_DEALER.DEPARTEMNT_ID IS '????id';

COMMENT ON COLUMN COMPANY_DEALER.OWER_ID IS '?????id';

COMMENT ON COLUMN COMPANY_DEALER.APPLY_STATUS IS '??????????1????2????3????4?????5?????';

COMMENT ON COLUMN COMPANY_DEALER.IS_STORAGE IS '??????????0?1?';

COMMENT ON COLUMN COMPANY_DEALER.TOTAL_LIMIT IS '???';

COMMENT ON COLUMN COMPANY_DEALER.USED_LIMIT IS '????';

COMMENT ON COLUMN COMPANY_DEALER.ENABLE_LIMIT IS '?????? 0?1?';

COMMENT ON COLUMN COMPANY_DEALER.IS_DIRECT IS '????? 0?1?';

COMMENT ON COLUMN COMPANY_DEALER.DIRECT_LIMIT IS '??????';

COMMENT ON COLUMN COMPANY_DEALER.DEALER_LEVEL_ID IS '????id';

COMMENT ON COLUMN COMPANY_DEALER.DEALER_LEVEL_NAME IS '??????';

COMMENT ON COLUMN COMPANY_DEALER.NORMAL_FLAG IS '?????1?????2???';

COMMENT ON COLUMN COMPANY_DEALER.BIG_CLIENT_FLAG IS '??????0?1?';

COMMENT ON COLUMN COMPANY_DEALER.DEALER_CRM_CODE IS 'crmCode';

COMMENT ON COLUMN COMPANY_DEALER.COUNTRY IS '??';

COMMENT ON COLUMN COMPANY_DEALER.TAX_RATE IS '??';

COMMENT ON COLUMN COMPANY_DEALER.DEALER_LEVEL IS '?????????1?????2??';

COMMENT ON COLUMN COMPANY_DEALER.DEALER_TYPE IS '???1?????2????3????4????5????6????&????,20??????50?????';

COMMENT ON COLUMN COMPANY_DEALER.MARKETING_CENTER_CODE IS '????code';

COMMENT ON COLUMN COMPANY_DEALER.MARKETING_CENTER_NAME IS '????name';

COMMENT ON COLUMN COMPANY_DEALER.MARKETING_CENTER_CODE2 IS '????code?????';

COMMENT ON COLUMN COMPANY_DEALER.MARKETING_CENTER_NAME2 IS '????name?????';

COMMENT ON COLUMN COMPANY_DEALER.DETAIL_ADDR IS '?????';

COMMENT ON COLUMN COMPANY_DEALER.ZB IS '??';

COMMENT ON COLUMN COMPANY_DEALER.YHBH IS '?????????;???';

COMMENT ON COLUMN COMPANY_DEALER.YHMC IS '?????????;???';

COMMENT ON COLUMN COMPANY_DEALER.CREDIT_AMOUNT IS '????';

COMMENT ON COLUMN COMPANY_DEALER.REMAIN_DELIVERY_AMOUNT IS '????????';

COMMENT ON COLUMN COMPANY_DEALER.CREDIT_SYNC_FLAG IS '1?2?';

COMMENT ON COLUMN COMPANY_DEALER.NO_LIMIT_MIN_FLAG IS '?????? 0-?, 1-?';

COMMENT ON COLUMN COMPANY_DEALER.STOP_FLAG IS '???? 0-???1-??';

COMMENT ON COLUMN COMPANY_DEALER.PROVINCE IS '????????';

COMMENT ON COLUMN COMPANY_DEALER.CITY IS '???????';

COMMENT ON COLUMN COMPANY_DEALER.IS_ALLOW_FWZ_ORDER IS '?????????(0:??1:?)';

COMMENT ON TABLE COMPANY_DEALER IS '???????';

-- ----------------------------
-- Table structure for COMPANY_INFO
-- ----------------------------
CREATE TABLE COMPANY_INFO (
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
COMPANY_NAME VARCHAR2(200 CHAR) VISIBLE,
SHORT_NAME VARCHAR2(100 CHAR) VISIBLE,
ADDRESS VARCHAR2(200 CHAR) VISIBLE,
COMPANY_CLASS_ID NUMBER(10,0) VISIBLE,
ZIP VARCHAR2(20 BYTE) VISIBLE,
FAX VARCHAR2(20 CHAR) VISIBLE,
CONTACT VARCHAR2(40 CHAR) VISIBLE,
CONTACT_TEL VARCHAR2(20 BYTE) VISIBLE,
CHANNEL NUMBER(2,0) VISIBLE,
CREATE_DATE DATE VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE,
MODULE_TEPLATE_ID VARCHAR2(20 BYTE) VISIBLE,
ORG_CODE VARCHAR2(20 CHAR) VISIBLE,
COMPANY_TYPE VARCHAR2(50 CHAR) VISIBLE,
IS_SAP NUMBER(1,0) VISIBLE DEFAULT 0  ,
SAP_CODE VARCHAR2(200 BYTE) VISIBLE,
IS_BARCODE NUMBER(1,0) VISIBLE DEFAULT 0  ,
IS_RETURN_AUDIT NUMBER(1,0) VISIBLE DEFAULT 1,
IS_URGENT_PRICE NUMBER(1,0) VISIBLE DEFAULT 0,
DOCUMENT_PRE VARCHAR2(6 BYTE) VISIBLE,
ING VARCHAR2(20 BYTE) VISIBLE,
STOP_FLAG VARCHAR2(1 BYTE) VISIBLE DEFAULT 0,
FACTORY_ID VARCHAR2(20 BYTE) VISIBLE,
FACTORY_NAME VARCHAR2(255 BYTE) VISIBLE,
SUPPLIER_NO VARCHAR2(50 BYTE) VISIBLE,
LOGIN_ID VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN COMPANY_INFO.ORG_ID IS '????';

COMMENT ON COLUMN COMPANY_INFO.COMPANY_NAME IS '????';

COMMENT ON COLUMN COMPANY_INFO.SHORT_NAME IS '????';

COMMENT ON COLUMN COMPANY_INFO.ADDRESS IS '??';

COMMENT ON COLUMN COMPANY_INFO.COMPANY_CLASS_ID IS '????';

COMMENT ON COLUMN COMPANY_INFO.ZIP IS '??';

COMMENT ON COLUMN COMPANY_INFO.FAX IS '??';

COMMENT ON COLUMN COMPANY_INFO.CONTACT IS '???';

COMMENT ON COLUMN COMPANY_INFO.CONTACT_TEL IS '????';

COMMENT ON COLUMN COMPANY_INFO.CHANNEL IS '???0-??????1-???';

COMMENT ON COLUMN COMPANY_INFO.CREATE_DATE IS '????';

COMMENT ON COLUMN COMPANY_INFO.IS_DEL IS '????';

COMMENT ON COLUMN COMPANY_INFO.MODULE_TEPLATE_ID IS '??id';

COMMENT ON COLUMN COMPANY_INFO.COMPANY_TYPE IS '1=?????2=????3=????4=?????????';

COMMENT ON COLUMN COMPANY_INFO.IS_SAP IS '????SAP?0??1??';

COMMENT ON COLUMN COMPANY_INFO.SAP_CODE IS 'SAP????';

COMMENT ON COLUMN COMPANY_INFO.IS_BARCODE IS '??????0??1??';

COMMENT ON COLUMN COMPANY_INFO.IS_RETURN_AUDIT IS '???????? 0?1?';

COMMENT ON COLUMN COMPANY_INFO.DOCUMENT_PRE IS '单据前缀。生成的所有单据使用该固定前缀';

COMMENT ON COLUMN COMPANY_INFO.STOP_FLAG IS '???? 0-?, 1-?';

COMMENT ON COLUMN COMPANY_INFO.FACTORY_ID IS '????key';

COMMENT ON COLUMN COMPANY_INFO.FACTORY_NAME IS '??????';

COMMENT ON COLUMN COMPANY_INFO.SUPPLIER_NO IS ' 供应商代码--来源广汽GPS';

COMMENT ON COLUMN COMPANY_INFO.LOGIN_ID IS ' 供应商id--来源广汽GPS';

COMMENT ON TABLE COMPANY_INFO IS '?????';

-- ----------------------------
-- Table structure for COMPANY_INVITATION_CODE
-- ----------------------------
CREATE TABLE COMPANY_INVITATION_CODE (
SENDER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
RECEIVER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
DEST_PHONE VARCHAR2(20 BYTE) VISIBLE,
DEST_EMAIL VARCHAR2(100 BYTE) VISIBLE,
INVITE_TYPE NUMBER(1,0) VISIBLE,
INVITATION_CODE VARCHAR2(20 BYTE) VISIBLE,
INVITE_USER_ID VARCHAR2(20 BYTE) VISIBLE,
CODE_STATE NUMBER(2,0) VISIBLE,
INVITE_DATE DATE VISIBLE,
EXPIRE_DATE DATE VISIBLE,
UPDATE_DATE DATE VISIBLE
);

COMMENT ON COLUMN COMPANY_INVITATION_CODE.SENDER_ORG_ID IS '???orgId';

COMMENT ON COLUMN COMPANY_INVITATION_CODE.RECEIVER_ORG_ID IS '???orgId';

COMMENT ON COLUMN COMPANY_INVITATION_CODE.DEST_PHONE IS '?????';

COMMENT ON COLUMN COMPANY_INVITATION_CODE.DEST_EMAIL IS '????';

COMMENT ON COLUMN COMPANY_INVITATION_CODE.INVITE_TYPE IS '?????1-??????';

COMMENT ON COLUMN COMPANY_INVITATION_CODE.INVITATION_CODE IS '???';

COMMENT ON COLUMN COMPANY_INVITATION_CODE.INVITE_USER_ID IS '???';

COMMENT ON COLUMN COMPANY_INVITATION_CODE.CODE_STATE IS '??';

COMMENT ON COLUMN COMPANY_INVITATION_CODE.INVITE_DATE IS '????';

COMMENT ON COLUMN COMPANY_INVITATION_CODE.EXPIRE_DATE IS '????';

COMMENT ON COLUMN COMPANY_INVITATION_CODE.UPDATE_DATE IS '????';

COMMENT ON TABLE COMPANY_INVITATION_CODE IS '?????';

-- ----------------------------
-- Table structure for COMPANY_LIMIT_RELATION
-- ----------------------------
CREATE TABLE COMPANY_LIMIT_RELATION (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
EXTEND_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
LIMIT_LEV VARCHAR2(10 BYTE) VISIBLE NOT NULL,
RELATION_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
USED_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0,
CANCEL_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN COMPANY_LIMIT_RELATION.ID IS 'ID';

COMMENT ON COLUMN COMPANY_LIMIT_RELATION.EXTEND_ID IS 'extend表的ID';

COMMENT ON COLUMN COMPANY_LIMIT_RELATION.LIMIT_LEV IS '关联类型';

COMMENT ON COLUMN COMPANY_LIMIT_RELATION.RELATION_ID IS '关联记录ID';

COMMENT ON COLUMN COMPANY_LIMIT_RELATION.USED_AMOUNT IS '??????';

COMMENT ON COLUMN COMPANY_LIMIT_RELATION.CANCEL_AMOUNT IS '??????';

COMMENT ON TABLE COMPANY_LIMIT_RELATION IS '???????????';

-- ----------------------------
-- Table structure for COMPANY_SUPPLIER
-- ----------------------------
CREATE TABLE COMPANY_SUPPLIER (
ID NUMBER(20,0) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
SUPPLIER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
SUPPLIER_CODE VARCHAR2(20 CHAR) VISIBLE,
COMPANY_NAME VARCHAR2(200 CHAR) VISIBLE,
SHORT_NAME VARCHAR2(100 CHAR) VISIBLE,
ADDRESS VARCHAR2(200 CHAR) VISIBLE,
ZIP VARCHAR2(20 CHAR) VISIBLE,
FAX VARCHAR2(20 CHAR) VISIBLE,
CONTACT VARCHAR2(40 CHAR) VISIBLE,
CONTACT_TEL VARCHAR2(20 BYTE) VISIBLE,
SUPPLIER_CLASS_ID NUMBER(10,0) VISIBLE,
IS_PLAT_COMPANY NUMBER(1,0) VISIBLE,
PLAT_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_DATE DATE VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE,
OWER_ID VARCHAR2(20 BYTE) VISIBLE,
APPLY_STATUS NUMBER(1,0) VISIBLE DEFAULT 1 ,
IS_DIRECT NUMBER(1,0) VISIBLE DEFAULT 0,
DEPT_CODE VARCHAR2(30 BYTE) VISIBLE,
DEPT_NAME VARCHAR2(100 BYTE) VISIBLE,
PURCHASE_NAME VARCHAR2(100 BYTE) VISIBLE,
PURCHASE_CODE VARCHAR2(30 BYTE) VISIBLE,
INTRAREGIONAL NUMBER(10,0) VISIBLE,
IS_DIRECT_HF NUMBER(1,0) VISIBLE DEFAULT 0,
KUNMING_SETTLEMENT NUMBER VISIBLE DEFAULT 0,
STOP_FLAG VARCHAR2(1 BYTE) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN COMPANY_SUPPLIER.ID IS 'id';

COMMENT ON COLUMN COMPANY_SUPPLIER.ORG_ID IS '????';

COMMENT ON COLUMN COMPANY_SUPPLIER.SUPPLIER_ORG_ID IS '????';

COMMENT ON COLUMN COMPANY_SUPPLIER.SUPPLIER_CODE IS '???????';

COMMENT ON COLUMN COMPANY_SUPPLIER.COMPANY_NAME IS '??????';

COMMENT ON COLUMN COMPANY_SUPPLIER.SHORT_NAME IS '????';

COMMENT ON COLUMN COMPANY_SUPPLIER.ADDRESS IS '??';

COMMENT ON COLUMN COMPANY_SUPPLIER.ZIP IS '??';

COMMENT ON COLUMN COMPANY_SUPPLIER.FAX IS '??';

COMMENT ON COLUMN COMPANY_SUPPLIER.CONTACT IS '?????';

COMMENT ON COLUMN COMPANY_SUPPLIER.CONTACT_TEL IS '??????';

COMMENT ON COLUMN COMPANY_SUPPLIER.SUPPLIER_CLASS_ID IS '????id';

COMMENT ON COLUMN COMPANY_SUPPLIER.IS_PLAT_COMPANY IS '??????';

COMMENT ON COLUMN COMPANY_SUPPLIER.PLAT_ORG_ID IS '?????';

COMMENT ON COLUMN COMPANY_SUPPLIER.CREATE_DATE IS '????';

COMMENT ON COLUMN COMPANY_SUPPLIER.CREATE_ID IS '???';

COMMENT ON COLUMN COMPANY_SUPPLIER.UPDATE_DATE IS '????';

COMMENT ON COLUMN COMPANY_SUPPLIER.UPDATE_ID IS '???';

COMMENT ON COLUMN COMPANY_SUPPLIER.IS_DEL IS '????';

COMMENT ON COLUMN COMPANY_SUPPLIER.OWER_ID IS '?????id';

COMMENT ON COLUMN COMPANY_SUPPLIER.IS_DIRECT IS '???? 0?1?';

COMMENT ON COLUMN COMPANY_SUPPLIER.DEPT_CODE IS '????';

COMMENT ON COLUMN COMPANY_SUPPLIER.DEPT_NAME IS '????';

COMMENT ON COLUMN COMPANY_SUPPLIER.PURCHASE_NAME IS '??????';

COMMENT ON COLUMN COMPANY_SUPPLIER.PURCHASE_CODE IS '??????';

COMMENT ON COLUMN COMPANY_SUPPLIER.INTRAREGIONAL IS '??????1???? 0????';

COMMENT ON COLUMN COMPANY_SUPPLIER.IS_DIRECT_HF IS '???????? 0-? 1-?';

COMMENT ON COLUMN COMPANY_SUPPLIER.KUNMING_SETTLEMENT IS '?????????1? 0?';

COMMENT ON COLUMN COMPANY_SUPPLIER.STOP_FLAG IS '???? 0-??, 1-??';

COMMENT ON TABLE COMPANY_SUPPLIER IS '???????';

-- ----------------------------
-- Table structure for COMPLETE_RATE_CONFIG
-- ----------------------------
CREATE TABLE COMPLETE_RATE_CONFIG (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
RATING_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CLIENT_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CLIENT_NAME VARCHAR2(100 CHAR) VISIBLE,
TOTAL_SALES_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
REMARK VARCHAR2(200 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
CREATOR_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 CHAR) VISIBLE,
MODIFIER_NAME VARCHAR2(50 CHAR) VISIBLE,
MODIFY_TIME DATE VISIBLE
);

COMMENT ON COLUMN COMPLETE_RATE_CONFIG.ID IS '非业务主键id';

COMMENT ON COLUMN COMPLETE_RATE_CONFIG.RATING_ID IS '评级信息id';

COMMENT ON COLUMN COMPLETE_RATE_CONFIG.CLIENT_ID IS '客户id';

COMMENT ON COLUMN COMPLETE_RATE_CONFIG.CLIENT_NAME IS '????';

COMMENT ON COLUMN COMPLETE_RATE_CONFIG.TOTAL_SALES_TARGET IS '?????';

COMMENT ON COLUMN COMPLETE_RATE_CONFIG.REMARK IS '??';

COMMENT ON COLUMN COMPLETE_RATE_CONFIG.IS_DEL IS '????(0??1?)';

COMMENT ON COLUMN COMPLETE_RATE_CONFIG.CREATOR_ID IS '创建人id';

COMMENT ON COLUMN COMPLETE_RATE_CONFIG.CREATOR_NAME IS '创建人姓名';

COMMENT ON COLUMN COMPLETE_RATE_CONFIG.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN COMPLETE_RATE_CONFIG.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN COMPLETE_RATE_CONFIG.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN COMPLETE_RATE_CONFIG.MODIFY_TIME IS '????';

COMMENT ON TABLE COMPLETE_RATE_CONFIG IS '?????????';

-- ----------------------------
-- Table structure for DEALER_CLASS
-- ----------------------------
CREATE TABLE DEALER_CLASS (
ID NUMBER(10,0) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
P_ID NUMBER(10,0) VISIBLE,
CLASS_NAME VARCHAR2(64 CHAR) VISIBLE,
CLASS_CODE VARCHAR2(20 CHAR) VISIBLE,
CLASS_VALUE VARCHAR2(200 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE,
CREATE_DATE DATE VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE
);

COMMENT ON COLUMN DEALER_CLASS.ID IS 'id';

COMMENT ON COLUMN DEALER_CLASS.ORG_ID IS '????';

COMMENT ON COLUMN DEALER_CLASS.P_ID IS '??id';

COMMENT ON COLUMN DEALER_CLASS.CLASS_NAME IS '????';

COMMENT ON COLUMN DEALER_CLASS.CLASS_CODE IS '????';

COMMENT ON COLUMN DEALER_CLASS.CLASS_VALUE IS '??????';

COMMENT ON COLUMN DEALER_CLASS.IS_DEL IS '????';

COMMENT ON COLUMN DEALER_CLASS.CREATE_DATE IS '????';

COMMENT ON COLUMN DEALER_CLASS.CREATE_ID IS '???';

COMMENT ON COLUMN DEALER_CLASS.UPDATE_DATE IS '????';

COMMENT ON COLUMN DEALER_CLASS.UPDATE_ID IS '???';

COMMENT ON TABLE DEALER_CLASS IS '??????';

-- ----------------------------
-- Table structure for DEALER_LEVEL
-- ----------------------------
CREATE TABLE DEALER_LEVEL (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
LEVEL_NAME VARCHAR2(64 CHAR) VISIBLE,
LEVEL_CODE VARCHAR2(30 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
CREATE_DATE DATE VISIBLE NOT NULL,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE NOT NULL,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE
);

COMMENT ON COLUMN DEALER_LEVEL.ID IS '非业务主键id';

COMMENT ON COLUMN DEALER_LEVEL.ORG_ID IS '企业编号';

COMMENT ON COLUMN DEALER_LEVEL.LEVEL_NAME IS '????';

COMMENT ON COLUMN DEALER_LEVEL.LEVEL_CODE IS '????';

COMMENT ON COLUMN DEALER_LEVEL.IS_DEL IS '删除标识，0：未删除，1：删除';

COMMENT ON COLUMN DEALER_LEVEL.CREATE_DATE IS '创建时间';

COMMENT ON COLUMN DEALER_LEVEL.CREATE_ID IS '???';

COMMENT ON COLUMN DEALER_LEVEL.UPDATE_DATE IS '修改时间';

COMMENT ON COLUMN DEALER_LEVEL.UPDATE_ID IS '???';

COMMENT ON TABLE DEALER_LEVEL IS '??????';

-- ----------------------------
-- Table structure for DEALER_STOREFRONT
-- ----------------------------
CREATE TABLE DEALER_STOREFRONT (
STORE_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
DEALER_ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
DEALER_NAME VARCHAR2(200 CHAR) VISIBLE,
DEALER_CODE VARCHAR2(20 CHAR) VISIBLE,
STORE_NAME VARCHAR2(200 CHAR) VISIBLE,
PROVINCE_ID VARCHAR2(6 BYTE) VISIBLE,
PROVINCE VARCHAR2(40 CHAR) VISIBLE,
CITY_ID VARCHAR2(6 BYTE) VISIBLE,
CITY VARCHAR2(50 CHAR) VISIBLE,
AREA_ID VARCHAR2(50 BYTE) VISIBLE,
AREA VARCHAR2(60 CHAR) VISIBLE,
ADDREASS VARCHAR2(500 CHAR) VISIBLE,
LONGITUDE NUMBER VISIBLE,
LATITUDE NUMBER VISIBLE,
CONTACT_TEL VARCHAR2(20 CHAR) VISIBLE,
CONTACT_NAME VARCHAR2(50 CHAR) VISIBLE,
IS_ENABLE NUMBER(1,0) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE DEFAULT sysdate  NOT NULL
);

COMMENT ON COLUMN DEALER_STOREFRONT.DEALER_ORG_ID IS '代理商代码';

COMMENT ON COLUMN DEALER_STOREFRONT.DEALER_NAME IS '?????';

COMMENT ON COLUMN DEALER_STOREFRONT.DEALER_CODE IS '?????';

COMMENT ON COLUMN DEALER_STOREFRONT.STORE_NAME IS '????';

COMMENT ON COLUMN DEALER_STOREFRONT.PROVINCE_ID IS '????';

COMMENT ON COLUMN DEALER_STOREFRONT.PROVINCE IS '????';

COMMENT ON COLUMN DEALER_STOREFRONT.CITY_ID IS '?????';

COMMENT ON COLUMN DEALER_STOREFRONT.CITY IS '?????';

COMMENT ON COLUMN DEALER_STOREFRONT.AREA_ID IS '????';

COMMENT ON COLUMN DEALER_STOREFRONT.AREA IS '????';

COMMENT ON COLUMN DEALER_STOREFRONT.ADDREASS IS '????';

COMMENT ON COLUMN DEALER_STOREFRONT.LONGITUDE IS '??';

COMMENT ON COLUMN DEALER_STOREFRONT.LATITUDE IS '??';

COMMENT ON COLUMN DEALER_STOREFRONT.CONTACT_TEL IS '????';

COMMENT ON COLUMN DEALER_STOREFRONT.CONTACT_NAME IS '???';

COMMENT ON COLUMN DEALER_STOREFRONT.IS_ENABLE IS '????';

COMMENT ON COLUMN DEALER_STOREFRONT.IS_DEL IS '????';

COMMENT ON COLUMN DEALER_STOREFRONT.UPDATE_ID IS '???id';

COMMENT ON COLUMN DEALER_STOREFRONT.UPDATE_DATE IS '修改时间';

COMMENT ON TABLE DEALER_STOREFRONT IS '?????';

-- ----------------------------
-- Table structure for DEALER_VEHICLE
-- ----------------------------
CREATE TABLE DEALER_VEHICLE (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
CLIENT_NAME VARCHAR2(200 CHAR) VISIBLE,
BRAND_CODE VARCHAR2(50 CHAR) VISIBLE,
BRAND_NAME VARCHAR2(100 CHAR) VISIBLE,
MODEL VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CAR_NO VARCHAR2(50 CHAR) VISIBLE NOT NULL,
MAINTENANCE_SEND_AMOUNT NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
UNIVERSAL_SEND_AMOUNT NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
MAINTENANCE_USE_AMOUNT NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
UNIVERSAL_USE_AMOUNT NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
MAINTENANCE_LAVE_AMOUNT NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
UNIVERSAL_LAVE_AMOUNT NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
REMARK VARCHAR2(500 CHAR) VISIBLE,
IS_DISABLE NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
CREATE_DATE DATE VISIBLE NOT NULL,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
CLIENT_ID VARCHAR2(20 BYTE) VISIBLE,
INITIAL_MAINTENANCE_USE_AMOUNT NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
INITIAL_UNIVERSAL_USE_AMOUNT NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
WARRANTY_STATUS NUMBER(1,0) VISIBLE
);

COMMENT ON COLUMN DEALER_VEHICLE.ID IS '非业务主键id';

COMMENT ON COLUMN DEALER_VEHICLE.ORG_ID IS '企业编号';

COMMENT ON COLUMN DEALER_VEHICLE.CLIENT_NAME IS '????';

COMMENT ON COLUMN DEALER_VEHICLE.BRAND_CODE IS '??code';

COMMENT ON COLUMN DEALER_VEHICLE.BRAND_NAME IS '????';

COMMENT ON COLUMN DEALER_VEHICLE.MODEL IS '机型';

COMMENT ON COLUMN DEALER_VEHICLE.CAR_NO IS '车号';

COMMENT ON COLUMN DEALER_VEHICLE.MAINTENANCE_SEND_AMOUNT IS '整机赠送额度（保养）';

COMMENT ON COLUMN DEALER_VEHICLE.UNIVERSAL_SEND_AMOUNT IS '整机赠送额度（通用）';

COMMENT ON COLUMN DEALER_VEHICLE.MAINTENANCE_USE_AMOUNT IS '已用额度（保养）';

COMMENT ON COLUMN DEALER_VEHICLE.UNIVERSAL_USE_AMOUNT IS '已用额度（通用）';

COMMENT ON COLUMN DEALER_VEHICLE.MAINTENANCE_LAVE_AMOUNT IS '剩余额度（保养）';

COMMENT ON COLUMN DEALER_VEHICLE.UNIVERSAL_LAVE_AMOUNT IS '剩余额度（通用）';

COMMENT ON COLUMN DEALER_VEHICLE.REMARK IS '??';

COMMENT ON COLUMN DEALER_VEHICLE.IS_DISABLE IS '是否停用，0：否，1：是';

COMMENT ON COLUMN DEALER_VEHICLE.CREATE_DATE IS '创建时间';

COMMENT ON COLUMN DEALER_VEHICLE.CREATE_ID IS '???';

COMMENT ON COLUMN DEALER_VEHICLE.UPDATE_DATE IS '????';

COMMENT ON COLUMN DEALER_VEHICLE.UPDATE_ID IS '???';

COMMENT ON COLUMN DEALER_VEHICLE.CLIENT_ID IS '??id';

COMMENT ON COLUMN DEALER_VEHICLE.WARRANTY_STATUS IS '?????1???2??';

COMMENT ON TABLE DEALER_VEHICLE IS '?????';

-- ----------------------------
-- Table structure for DEALER_VEHICLE_LOG
-- ----------------------------
CREATE TABLE DEALER_VEHICLE_LOG (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MAINTENANCE_QUOTA NUMBER(22,3) VISIBLE DEFAULT 0,
GENERAL_QUOTA NUMBER(22,3) VISIBLE DEFAULT 0,
CREATE_TIME DATE VISIBLE NOT NULL,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
CREATE_NAME VARCHAR2(100 CHAR) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL
);

COMMENT ON COLUMN DEALER_VEHICLE_LOG.ID IS '非业务主键id';

COMMENT ON COLUMN DEALER_VEHICLE_LOG.MAINTENANCE_QUOTA IS '??????';

COMMENT ON COLUMN DEALER_VEHICLE_LOG.GENERAL_QUOTA IS '??????';

COMMENT ON COLUMN DEALER_VEHICLE_LOG.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN DEALER_VEHICLE_LOG.CREATE_ID IS '创建人id';

COMMENT ON COLUMN DEALER_VEHICLE_LOG.CREATE_NAME IS '创建人名称';

COMMENT ON COLUMN DEALER_VEHICLE_LOG.ORG_ID IS '企业orgId';

COMMENT ON TABLE DEALER_VEHICLE_LOG IS '?????????';

-- ----------------------------
-- Table structure for DELIVERY_INSTRUCTION
-- ----------------------------
CREATE TABLE DELIVERY_INSTRUCTION (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DELIVERY_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DELIVERY_INSTRUCTION_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
WERKS VARCHAR2(30 CHAR) VISIBLE,
SUPPLIER_ORG_ID VARCHAR2(30 CHAR) VISIBLE,
SUPPLIER_NAME VARCHAR2(100 CHAR) VISIBLE,
WAREHOUSE_CODE VARCHAR2(30 CHAR) VISIBLE,
VOUCHER_NO VARCHAR2(64 CHAR) VISIBLE,
VOUCHER_PRO_NO VARCHAR2(64 CHAR) VISIBLE,
STATE NUMBER(1,0) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(100 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
POSTING_STATE NUMBER(1,0) VISIBLE DEFAULT 0 ,
DEPT VARCHAR2(30 CHAR) VISIBLE,
DEPT_ID VARCHAR2(30 CHAR) VISIBLE,
SAP_IN_AREA VARCHAR2(60 BYTE) VISIBLE,
IN_AREA VARCHAR2(60 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN DELIVERY_INSTRUCTION.ID IS '主表id';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.DELIVERY_ORDER IS '配送指令入库单号';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.DELIVERY_INSTRUCTION_NO IS '配送指令号';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.ORG_ID IS '??orgid';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.WERKS IS '????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.SUPPLIER_ORG_ID IS '?????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.SUPPLIER_NAME IS '?????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.WAREHOUSE_CODE IS '????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.VOUCHER_NO IS '?????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.VOUCHER_PRO_NO IS '?????????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.STATE IS '???? 0???1????2???';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.POSTING_STATE IS '???? 0???1????2???';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.DEPT IS '?????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.DEPT_ID IS '?????id';

COMMENT ON COLUMN DELIVERY_INSTRUCTION.IS_DEL IS '????';

COMMENT ON TABLE DELIVERY_INSTRUCTION IS '//DELIVERY_INSTRUCTION';

-- ----------------------------
-- Table structure for DELIVERY_INSTRUCTION_BILL
-- ----------------------------
CREATE TABLE DELIVERY_INSTRUCTION_BILL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DELIVERY_INSTRUCTION_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ROW_NO VARCHAR2(30 CHAR) VISIBLE,
MATERIAL_NO VARCHAR2(30 CHAR) VISIBLE,
MATERIAL_NAME VARCHAR2(100 CHAR) VISIBLE,
UNIT VARCHAR2(100 CHAR) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE,
REAL_AMOUNT NUMBER(14,3) VISIBLE,
STATE NUMBER(1,0) VISIBLE,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN DELIVERY_INSTRUCTION_BILL.DELIVERY_INSTRUCTION_NO IS '配送指令号';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_BILL.ROW_NO IS '????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_BILL.MATERIAL_NO IS '????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_BILL.MATERIAL_NAME IS '????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_BILL.UNIT IS '??';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_BILL.AMOUNT IS '????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_BILL.REAL_AMOUNT IS '?????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_BILL.STATE IS '???? 0???1????2???';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_BILL.ORG_ID IS '??orgid';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_BILL.CREATE_DATE IS '????';

COMMENT ON TABLE DELIVERY_INSTRUCTION_BILL IS '?????????';

-- ----------------------------
-- Table structure for DELIVERY_INSTRUCTION_DETAIL
-- ----------------------------
CREATE TABLE DELIVERY_INSTRUCTION_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DELIVERY_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DELIVERY_INSTRUCTION_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ROW_NO NUMBER(6,0) VISIBLE,
MATERIAL_NO VARCHAR2(30 CHAR) VISIBLE,
MATERIAL_NAME VARCHAR2(100 CHAR) VISIBLE,
MATERIAL_TYPE VARCHAR2(100 CHAR) VISIBLE,
UNIT VARCHAR2(100 CHAR) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE,
REAL_AMOUNT NUMBER(14,3) VISIBLE,
INNER_AMOUNT NUMBER(14,3) VISIBLE,
OUTER_AMOUNT NUMBER(14,3) VISIBLE,
STATE NUMBER(1,0) VISIBLE,
IN_VOUCHER VARCHAR2(100 CHAR) VISIBLE,
OUT_VOUCHER VARCHAR2(100 CHAR) VISIBLE,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(100 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
POSTING_STATE NUMBER(1,0) VISIBLE,
SAP_ERROR_MSG VARCHAR2(2000 BYTE) VISIBLE
);

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.DELIVERY_ORDER IS '配送指令入库单号，对应DELIVERY_INSTRUCTION.DELIVERY_ORDER';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.DELIVERY_INSTRUCTION_NO IS '配送指令号';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.ROW_NO IS '????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.MATERIAL_NO IS '????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.MATERIAL_NAME IS '????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.MATERIAL_TYPE IS '????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.UNIT IS '??';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.AMOUNT IS '????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.REAL_AMOUNT IS '?????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.INNER_AMOUNT IS '??????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.OUTER_AMOUNT IS '??????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.STATE IS '???? 0???1????2???';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.IN_VOUCHER IS '??????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.OUT_VOUCHER IS '??????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.POSTING_STATE IS '???? 0???1????2???';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_DETAIL.SAP_ERROR_MSG IS 'sap???????????';

COMMENT ON TABLE DELIVERY_INSTRUCTION_DETAIL IS '//DELIVERY_INSTRUCTION_DETAIL';

-- ----------------------------
-- Table structure for DELIVERY_INSTRUCTION_POSTING
-- ----------------------------
CREATE TABLE DELIVERY_INSTRUCTION_POSTING (
DETAIL_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
IN_VOUCHER VARCHAR2(100 BYTE) VISIBLE,
OUT_VOUCHER VARCHAR2(100 BYTE) VISIBLE,
POSTING_QTY NUMBER(14,3) VISIBLE NOT NULL,
CREATE_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CREATE_NAME VARCHAR2(100 BYTE) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL
);

COMMENT ON COLUMN DELIVERY_INSTRUCTION_POSTING.DETAIL_ID IS 'DELIVERY_INSTRUCTION_DETAIL表主键';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_POSTING.IN_VOUCHER IS '??????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_POSTING.OUT_VOUCHER IS '??????';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_POSTING.POSTING_QTY IS '本次过账物料数量';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_POSTING.CREATE_ID IS '过账人id';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_POSTING.CREATE_NAME IS '过账人名称';

COMMENT ON COLUMN DELIVERY_INSTRUCTION_POSTING.CREATE_TIME IS '过账时间';

COMMENT ON TABLE DELIVERY_INSTRUCTION_POSTING IS '?????????';

-- ----------------------------
-- Table structure for DELIVERY_NOTE
-- ----------------------------
CREATE TABLE DELIVERY_NOTE (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
DELIVERY_NO VARCHAR2(30 BYTE) VISIBLE,
SALE_NO VARCHAR2(30 BYTE) VISIBLE,
AGENT_APPLICATION_NO VARCHAR2(30 BYTE) VISIBLE,
SAP_SALE_ORDER VARCHAR2(30 BYTE) VISIBLE,
SAP_OUT_BILL VARCHAR2(30 BYTE) VISIBLE,
MATERIALS_NO VARCHAR2(30 BYTE) VISIBLE,
SALE_ORG VARCHAR2(40 BYTE) VISIBLE,
DISTRIBUTION_CHANNEL_ID VARCHAR2(30 BYTE) VISIBLE,
PRODUCT_GROUP VARCHAR2(20 BYTE) VISIBLE,
SALE_GROUP VARCHAR2(20 BYTE) VISIBLE,
INTER_TRADE_CLAUSE_PART1 VARCHAR2(500 BYTE) VISIBLE,
INTER_TRADE_CLAUSE_PART2 VARCHAR2(500 BYTE) VISIBLE,
PAY_CONDITION_ID VARCHAR2(30 BYTE) VISIBLE,
CUSTOMER_PURCHASE_CODE VARCHAR2(30 BYTE) VISIBLE,
CUSTOMER_PURCHASE_DATE TIMESTAMP(6) VISIBLE,
RESPONSIBLE_PERSON VARCHAR2(30 BYTE) VISIBLE,
ORDER_TYPE VARCHAR2(30 BYTE) VISIBLE,
DELIVERY VARCHAR2(30 BYTE) VISIBLE,
SOLD VARCHAR2(30 BYTE) VISIBLE,
CLIENT_CODE VARCHAR2(20 BYTE) VISIBLE,
PURCHASE_ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
APPLICATION_DATE TIMESTAMP(6) VISIBLE,
SUPPLIER_ORG_ID VARCHAR2(50 BYTE) VISIBLE,
SUPPLIER_ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
PURCHASE_LEVEL_ID VARCHAR2(8 BYTE) VISIBLE,
DELIVERY_TYPE_ID VARCHAR2(20 BYTE) VISIBLE,
DELIVERY_TYPE_NAME VARCHAR2(50 CHAR) VISIBLE,
SETTLE_TYPE_ID VARCHAR2(20 BYTE) VISIBLE,
SETTLE_TYPE_NAME VARCHAR2(50 CHAR) VISIBLE,
OUT_LOCATION VARCHAR2(20 BYTE) VISIBLE,
RECEIVER_NAME VARCHAR2(100 BYTE) VISIBLE,
RECEIVER_PHONE VARCHAR2(20 CHAR) VISIBLE,
RECEIVER_FAX VARCHAR2(20 CHAR) VISIBLE,
ADDRESS VARCHAR2(400 CHAR) VISIBLE,
TOTAL_SETTLEMENT_PRICE NUMBER(20,0) VISIBLE DEFAULT 0  ,
TOTAL_DISCOUNT_PRICE NUMBER(20,0) VISIBLE DEFAULT 0  ,
PAYMENT_STATE NUMBER(1,0) VISIBLE,
REVIEW_STATE NUMBER(1,0) VISIBLE,
REVIEW_STATE_DESCRIBE VARCHAR2(20 CHAR) VISIBLE,
LOG_STATE_DESCRIBE VARCHAR2(20 BYTE) VISIBLE,
SAP_UPDATE NUMBER(1,0) VISIBLE,
TICKET_STATE NUMBER(1,0) VISIBLE,
IS_LISTING NUMBER(1,0) VISIBLE,
IS_STATE NUMBER(1,0) VISIBLE,
NOTE VARCHAR2(400 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
CREATOR_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(18 CHAR) VISIBLE DEFAULT 0  ,
CREATE_DEPART_ID VARCHAR2(10 BYTE) VISIBLE,
CREATE_DEPART_NAME VARCHAR2(20 CHAR) VISIBLE,
CREATE_COMPANY_CODE VARCHAR2(20 BYTE) VISIBLE,
CREATE_COMPANY_NAME VARCHAR2(200 CHAR) VISIBLE DEFAULT 0  ,
MODIFY_DATE TIMESTAMP(6) VISIBLE,
MODIFY_CODE VARCHAR2(20 BYTE) VISIBLE,
SIGN_DATE TIMESTAMP(6) VISIBLE,
STATUS VARCHAR2(10 BYTE) VISIBLE,
PAY_CONDITION_NAME VARCHAR2(60 CHAR) VISIBLE,
DISTRIBUTION_CHANNEL_NAME VARCHAR2(50 CHAR) VISIBLE,
PURCHASE_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
IS_OUT_LOCATION_DESC VARCHAR2(300 BYTE) VISIBLE,
LOG_STATE VARCHAR2(20 BYTE) VISIBLE,
IS_OUT_LOCATION VARCHAR2(20 BYTE) VISIBLE,
PURCHASE_LEVEL_NAME VARCHAR2(100 CHAR) VISIBLE,
PURCHASE_NO VARCHAR2(50 BYTE) VISIBLE,
IS_POSTING NUMBER(1,0) VISIBLE,
IS_REVERSE NUMBER(1,0) VISIBLE,
IS_RETURN NUMBER(1,0) VISIBLE DEFAULT 0  ,
IS_REVERSE_SUCCESS NUMBER(1,0) VISIBLE DEFAULT 0  ,
OUT_AREA VARCHAR2(60 BYTE) VISIBLE,
SAP_OUT_AREA VARCHAR2(60 BYTE) VISIBLE,
SAP_OUT_NO VARCHAR2(30 CHAR) VISIBLE,
IS_PRINT NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
UPDATE_STATE_DATE TIMESTAMP(6) VISIBLE,
CHECK_STATE NUMBER(1,0) VISIBLE DEFAULT 0,
TICKET_DATE TIMESTAMP(6) VISIBLE,
SEND_TYPE_CHILD_ID VARCHAR2(20 BYTE) VISIBLE,
SEND_TYPE_CHILD_NAME VARCHAR2(32 BYTE) VISIBLE,
COUNTRY VARCHAR2(200 BYTE) VISIBLE,
IS_SIGN NUMBER(1,0) VISIBLE DEFAULT 0,
SEND_ORDER VARCHAR2(30 CHAR) VISIBLE,
ADDRESS_CODE VARCHAR2(60 BYTE) VISIBLE,
IS_READY NUMBER(1,0) VISIBLE DEFAULT 0
,
POST_DATE TIMESTAMP(6) VISIBLE,
SAP_LAUNCH NUMBER(1,0) VISIBLE,
CASH_SHORT_AND_OVER NUMBER(20,0) VISIBLE,
PURCHASE_CONTRACT_NO VARCHAR2(50 BYTE) VISIBLE,
DELIVERY_DATE TIMESTAMP(6) VISIBLE,
CRM_ORDER VARCHAR2(50 BYTE) VISIBLE,
FORWARD NUMBER(1,0) VISIBLE DEFAULT 0,
AUDIT_USER_ID VARCHAR2(50 BYTE) VISIBLE,
AUDIT_USER_NAME VARCHAR2(50 BYTE) VISIBLE,
AUDIT_DATE TIMESTAMP(7) VISIBLE,
AUDIT_REMARK VARCHAR2(3000 BYTE) VISIBLE,
SALES_NAME VARCHAR2(50 BYTE) VISIBLE,
DELIVERY_FORM VARCHAR2(50 BYTE) VISIBLE,
ERP_DL_NO VARCHAR2(50 BYTE) VISIBLE,
ERP_SYNC_STATUS VARCHAR2(1 BYTE) VISIBLE,
ERP_SYNC_DATE DATE VISIBLE,
DEALER_CODE VARCHAR2(50 BYTE) VISIBLE,
PICKING_NO VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN DELIVERY_NOTE.ID IS '唯一编号';

COMMENT ON COLUMN DELIVERY_NOTE.REVIEW_STATE IS '?????1:????2??????3????????????????????system_parameter?PARAM_TYPE??';

COMMENT ON COLUMN DELIVERY_NOTE.IS_STATE IS '?????0???1??';

COMMENT ON COLUMN DELIVERY_NOTE.PURCHASE_ORG_ID IS '????';

COMMENT ON COLUMN DELIVERY_NOTE.LOG_STATE IS '????,0:???,1:????,2:???';

COMMENT ON COLUMN DELIVERY_NOTE.IS_OUT_LOCATION IS '?????0????1?????2????3????';

COMMENT ON COLUMN DELIVERY_NOTE.PURCHASE_LEVEL_NAME IS '??????';

COMMENT ON COLUMN DELIVERY_NOTE.PURCHASE_NO IS '????';

COMMENT ON COLUMN DELIVERY_NOTE.IS_POSTING IS '???? 0?1?';

COMMENT ON COLUMN DELIVERY_NOTE.IS_REVERSE IS '???? 0??? 1??? 2???? 3????';

COMMENT ON COLUMN DELIVERY_NOTE.IS_RETURN IS '?????0????1????2?????';

COMMENT ON COLUMN DELIVERY_NOTE.IS_REVERSE_SUCCESS IS '?????? 0???1????2????';

COMMENT ON COLUMN DELIVERY_NOTE.SAP_OUT_NO IS '???sap??????B+9????';

COMMENT ON COLUMN DELIVERY_NOTE.IS_PRINT IS '是否打印';

COMMENT ON COLUMN DELIVERY_NOTE.IS_DEL IS '????';

COMMENT ON COLUMN DELIVERY_NOTE.UPDATE_STATE_DATE IS '????????';

COMMENT ON COLUMN DELIVERY_NOTE.CHECK_STATE IS '???? 0???1????2???';

COMMENT ON COLUMN DELIVERY_NOTE.TICKET_DATE IS '????';

COMMENT ON COLUMN DELIVERY_NOTE.SEND_TYPE_CHILD_ID IS '????????';

COMMENT ON COLUMN DELIVERY_NOTE.SEND_TYPE_CHILD_NAME IS '????????';

COMMENT ON COLUMN DELIVERY_NOTE.COUNTRY IS '??';

COMMENT ON COLUMN DELIVERY_NOTE.IS_SIGN IS '???? 0???1???';

COMMENT ON COLUMN DELIVERY_NOTE.SEND_ORDER IS '????';

COMMENT ON COLUMN DELIVERY_NOTE.ADDRESS_CODE IS '??????';

COMMENT ON COLUMN DELIVERY_NOTE.IS_READY IS '???? 0???1???';

COMMENT ON COLUMN DELIVERY_NOTE.POST_DATE IS '????';

COMMENT ON COLUMN DELIVERY_NOTE.SAP_LAUNCH IS '????????sap?0????????1???????';

COMMENT ON COLUMN DELIVERY_NOTE.CASH_SHORT_AND_OVER IS '?????????';

COMMENT ON COLUMN DELIVERY_NOTE.PURCHASE_CONTRACT_NO IS '?????';

COMMENT ON COLUMN DELIVERY_NOTE.DELIVERY_DATE IS '???';

COMMENT ON COLUMN DELIVERY_NOTE.CRM_ORDER IS 'crm??';

COMMENT ON COLUMN DELIVERY_NOTE.FORWARD IS '?????0/null??, 1:?';

COMMENT ON COLUMN DELIVERY_NOTE.AUDIT_USER_ID IS '???id';

COMMENT ON COLUMN DELIVERY_NOTE.AUDIT_USER_NAME IS '?????';

COMMENT ON COLUMN DELIVERY_NOTE.AUDIT_DATE IS '????';

COMMENT ON COLUMN DELIVERY_NOTE.AUDIT_REMARK IS '???????';

COMMENT ON COLUMN DELIVERY_NOTE.SALES_NAME IS '???';

COMMENT ON COLUMN DELIVERY_NOTE.DELIVERY_FORM IS '????';

COMMENT ON COLUMN DELIVERY_NOTE.ERP_DL_NO IS 'ERP????';

COMMENT ON COLUMN DELIVERY_NOTE.ERP_SYNC_STATUS IS 'ERP???? 0-???, 1-???, 2-????';

COMMENT ON COLUMN DELIVERY_NOTE.ERP_SYNC_DATE IS 'ERP????';

COMMENT ON COLUMN DELIVERY_NOTE.DEALER_CODE IS '?????????';

COMMENT ON COLUMN DELIVERY_NOTE.PICKING_NO IS '????';

COMMENT ON TABLE DELIVERY_NOTE IS '//DELIVERY_NOTE';

-- ----------------------------
-- Table structure for DELIVERY_NOTE_DETAIL
-- ----------------------------
CREATE TABLE DELIVERY_NOTE_DETAIL (
ID VARCHAR2(20 BYTE) VISIBLE,
LINE_CODE VARCHAR2(6 BYTE) VISIBLE,
MATERIALS_NO VARCHAR2(20 BYTE) VISIBLE,
MATERIALS_DES VARCHAR2(200 BYTE) VISIBLE,
SORT_ID VARCHAR2(20 BYTE) VISIBLE,
SORT_NAME VARCHAR2(200 BYTE) VISIBLE,
UNIT VARCHAR2(20 BYTE) VISIBLE,
PRICE NUMBER(10,0) VISIBLE,
QTY NUMBER(14,3) VISIBLE,
APPLY_TOTAL_PRICE NUMBER(30,0) VISIBLE,
PRICE_SCHEME_ID VARCHAR2(20 BYTE) VISIBLE,
PRICE_SCHEME_NAME VARCHAR2(200 BYTE) VISIBLE,
AMOUNT_AFTER_ADJUST NUMBER(14,3) VISIBLE,
UNIT_PRICE_AFTER_ADJUST NUMBER(10,0) VISIBLE,
TOTAL_PRICE_AFTER_ADJUST NUMBER(30,0) VISIBLE,
DELIVERY_DATE TIMESTAMP(6) VISIBLE,
INVENTORY_OUT_AMOUNT NUMBER(14,3) VISIBLE,
PACK_NUMBER NUMBER(14,3) VISIBLE DEFAULT 0  ,
SEND_NUMBER NUMBER(14,3) VISIBLE DEFAULT 0  ,
IS_DEL NUMBER(1,0) VISIBLE,
REMARK VARCHAR2(400 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
CREATE_CODE VARCHAR2(20 BYTE) VISIBLE,
IS_PRINT NUMBER(1,0) VISIBLE,
DELIVERY_NOTE_NO VARCHAR2(20 BYTE) VISIBLE,
STATUS VARCHAR2(20 BYTE) VISIBLE DEFAULT 0 ,
DELIVERY_QTY NUMBER(14,3) VISIBLE,
ORGID VARCHAR2(30 CHAR) VISIBLE,
SEND_QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
IS_RETURN NUMBER(1,0) VISIBLE DEFAULT 0  ,
INVOICE_FLAG NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
MACHINE_MODEL VARCHAR2(200 BYTE) VISIBLE,
LATEST_OUT_TIME TIMESTAMP(6) VISIBLE,
ORIGINAL_MATERIALS_NO VARCHAR2(500 CHAR) VISIBLE,
LINE_NO NUMBER(3,0) VISIBLE,
SPEC VARCHAR2(50 BYTE) VISIBLE,
OUT_STATUS VARCHAR2(1 BYTE) VISIBLE,
REQUIRE_DL_DATE DATE VISIBLE,
PLAN_TS_DATE DATE VISIBLE,
TAX_PRICE NUMBER(10,0) VISIBLE,
SOURCE_BILL_ID VARCHAR2(50 BYTE) VISIBLE,
SOURCE_BILL_CODE VARCHAR2(50 BYTE) VISIBLE,
SOURCE_BILL_ITEM_ID VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.ID IS 'ID';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.LINE_CODE IS '??';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.MATERIALS_NO IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.MATERIALS_DES IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.SORT_ID IS '??????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.SORT_NAME IS '??????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.UNIT IS '??';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.PRICE IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.QTY IS '???';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.APPLY_TOTAL_PRICE IS '???';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.PRICE_SCHEME_ID IS '????ID';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.PRICE_SCHEME_NAME IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.AMOUNT_AFTER_ADJUST IS '?????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.UNIT_PRICE_AFTER_ADJUST IS '?????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.TOTAL_PRICE_AFTER_ADJUST IS '?????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.DELIVERY_DATE IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.INVENTORY_OUT_AMOUNT IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.PACK_NUMBER IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.SEND_NUMBER IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.IS_DEL IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.REMARK IS '??';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.CREATE_DATE IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.CREATE_CODE IS '?????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.IS_PRINT IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.DELIVERY_NOTE_NO IS '??ID';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.STATUS IS '0:???,1:????,2:???';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.DELIVERY_QTY IS '??????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.SEND_QTY IS '???????????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.IS_RETURN IS '?????0????1????2?????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.INVOICE_FLAG IS '是否已开票。0否，1是';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.MACHINE_MODEL IS '??';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.LATEST_OUT_TIME IS '????????????????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.ORIGINAL_MATERIALS_NO IS '?????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.LINE_NO IS 'pms??????????????????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.SPEC IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.OUT_STATUS IS '???? 0-????1-?????2-????3-????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.REQUIRE_DL_DATE IS '??????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.PLAN_TS_DATE IS '??????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.TAX_PRICE IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.SOURCE_BILL_ID IS '??id';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.SOURCE_BILL_CODE IS '????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL.SOURCE_BILL_ITEM_ID IS '????id';

COMMENT ON TABLE DELIVERY_NOTE_DETAIL IS '//DELIVERY_NOTE_DETAIL';

-- ----------------------------
-- Table structure for DELIVERY_NOTE_DETAIL_EXTEND
-- ----------------------------
CREATE TABLE DELIVERY_NOTE_DETAIL_EXTEND (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DETAIL_ID VARCHAR2(20 BYTE) VISIBLE,
CLOSE_PRICE_BEFORE NUMBER(14,3) VISIBLE,
CLOSE_PRICE_AFTER NUMBER(14,3) VISIBLE,
IS_INVOICE NUMBER(1,0) VISIBLE DEFAULT 0 ,
IS_VERIFICATION NUMBER(1,0) VISIBLE DEFAULT 0 ,
VERIFY_PRICE NUMBER(14,3) VISIBLE,
DEALER_PRICE NUMBER(14,3) VISIBLE
);

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL_EXTEND.ID IS 'ID';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL_EXTEND.DETAIL_ID IS '???????ID';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL_EXTEND.CLOSE_PRICE_BEFORE IS '?????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL_EXTEND.CLOSE_PRICE_AFTER IS '?????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL_EXTEND.IS_INVOICE IS '?????0????1????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL_EXTEND.IS_VERIFICATION IS '?????0????1????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL_EXTEND.VERIFY_PRICE IS '?????';

COMMENT ON COLUMN DELIVERY_NOTE_DETAIL_EXTEND.DEALER_PRICE IS '??????????';

COMMENT ON TABLE DELIVERY_NOTE_DETAIL_EXTEND IS '//DELIVERY_NOTE_DETAIL_EXTEND';

-- ----------------------------
-- Table structure for DELIVERY_NOTE_EXTEND
-- ----------------------------
CREATE TABLE DELIVERY_NOTE_EXTEND (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
DELIVERY_NOTE_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CONSIGNEE_NAME VARCHAR2(100 BYTE) VISIBLE,
CONSIGNEE_IDENTITY_CARD VARCHAR2(30 BYTE) VISIBLE,
RECEIVER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
RECEIVER_ORG_NAME VARCHAR2(200 BYTE) VISIBLE
);

COMMENT ON COLUMN DELIVERY_NOTE_EXTEND.ID IS '主键';

COMMENT ON COLUMN DELIVERY_NOTE_EXTEND.DELIVERY_NOTE_ID IS '发货通知单ID';

COMMENT ON COLUMN DELIVERY_NOTE_EXTEND.CONSIGNEE_NAME IS '?????';

COMMENT ON COLUMN DELIVERY_NOTE_EXTEND.CONSIGNEE_IDENTITY_CARD IS '??????';

COMMENT ON COLUMN DELIVERY_NOTE_EXTEND.RECEIVER_ORG_ID IS '????ID';

COMMENT ON COLUMN DELIVERY_NOTE_EXTEND.RECEIVER_ORG_NAME IS '??????';

COMMENT ON TABLE DELIVERY_NOTE_EXTEND IS '????????';

-- ----------------------------
-- Table structure for DELIVERY_RECEIPT
-- ----------------------------
CREATE TABLE DELIVERY_RECEIPT (
ID VARCHAR2(20 BYTE) VISIBLE,
BILL_NO VARCHAR2(30 BYTE) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
DEALER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
DEALER_ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
SHIPPING_METHOD VARCHAR2(50 CHAR) VISIBLE,
SETTLEMENT_ID VARCHAR2(20 BYTE) VISIBLE,
SETTLEMENT_DESC VARCHAR2(59 CHAR) VISIBLE,
RECEIVER_NAME VARCHAR2(200 CHAR) VISIBLE,
RECEIVER_TEL VARCHAR2(20 CHAR) VISIBLE,
RECEIVER_FAX VARCHAR2(20 CHAR) VISIBLE,
RECEIVER_ADDRESS VARCHAR2(400 CHAR) VISIBLE,
DELIVERY_DATE DATE VISIBLE,
ARRIVAL_DATE DATE VISIBLE,
CARRIER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
CARRIER_ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
CARRIER_USER_NAME VARCHAR2(200 CHAR) VISIBLE,
CARRIER_TEL VARCHAR2(20 BYTE) VISIBLE,
CARRIER_CAR VARCHAR2(200 CHAR) VISIBLE,
CARRIER_AMOUNT NUMBER(20,0) VISIBLE,
PRODUCT_AMOUNT NUMBER(20,0) VISIBLE,
AUDIT_STATUS VARCHAR2(50 CHAR) VISIBLE,
AUDIT_DESC VARCHAR2(50 CHAR) VISIBLE,
AUDIT_ID VARCHAR2(20 BYTE) VISIBLE,
AUDIT_NAME VARCHAR2(20 CHAR) VISIBLE,
AUDIT_DATE DATE VISIBLE,
AUDIT_MESSAGE VARCHAR2(3000 CHAR) VISIBLE,
DELIVERY_STATUS VARCHAR2(50 CHAR) VISIBLE,
DELIVERY_DESC VARCHAR2(20 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE,
REMARK VARCHAR2(3000 CHAR) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(255 CHAR) VISIBLE,
CREATE_DATE DATE VISIBLE,
CREATE_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
COMMIT_TYPE NUMBER(1,0) VISIBLE,
COMMIT_ID VARCHAR2(20 BYTE) VISIBLE,
COMMIT_TIME DATE VISIBLE,
SALES_TYPE VARCHAR2(50 CHAR) VISIBLE,
SALES_TYPE_DESC VARCHAR2(50 CHAR) VISIBLE,
FREIGHT_NO VARCHAR2(50 BYTE) VISIBLE,
RECEIVER_SITE VARCHAR2(200 CHAR) VISIBLE,
BILL_TYPE VARCHAR2(20 CHAR) VISIBLE DEFAULT 'XGFT'  NOT NULL,
RECEIVE_MESSAGE VARCHAR2(800 CHAR) VISIBLE,
RECEIVE_DATE DATE VISIBLE,
BASIC_ID VARCHAR2(20 BYTE) VISIBLE,
COMMITMENT_TIME NUMBER(10,1) VISIBLE,
DISPATCHER_NAME VARCHAR2(100 CHAR) VISIBLE,
IS_ABNORMAL NUMBER(1,0) VISIBLE DEFAULT 0,
OUT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
SEND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
ADDRESS_CODE VARCHAR2(60 BYTE) VISIBLE,
SHIPPING_METHOD_ID VARCHAR2(30 CHAR) VISIBLE,
SHIPPING_SECOND_METHOD VARCHAR2(60 CHAR) VISIBLE,
SHIPPING_SECOND_METHOD_ID VARCHAR2(30 CHAR) VISIBLE,
ATTACH_NAME VARCHAR2(100 CHAR) VISIBLE,
OUT_LOCATION VARCHAR2(30 BYTE) VISIBLE,
THREE_DAY_PLAN NUMBER(1,0) VISIBLE DEFAULT 0 ,
PLAN_DATE DATE VISIBLE,
EXPRESS_CODE VARCHAR2(50 BYTE) VISIBLE,
REAL_ARRIVAL_DATE DATE VISIBLE,
ARRIVAL_FLAG NUMBER(1,0) VISIBLE DEFAULT 0
,
SERVICE_NO VARCHAR2(50 BYTE) VISIBLE,
TOTAL_WEIGHT NUMBER(14,3) VISIBLE,
FREIGHT NUMBER(14,3) VISIBLE,
COUNTRY VARCHAR2(50 BYTE) VISIBLE,
DELIVERY_TIME TIMESTAMP(6) VISIBLE,
PURCHASE_CONTRACT_NO VARCHAR2(50 BYTE) VISIBLE,
CHECKER_NAME VARCHAR2(50 BYTE) VISIBLE,
ACCESSORIES_FEE NUMBER(20,3) VISIBLE,
JCK_BILL_NO VARCHAR2(30 BYTE) VISIBLE,
SYNC_NS_STATUS NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN DELIVERY_RECEIPT.BILL_NO IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.ORG_ID IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.ORG_NAME IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.DEALER_ORG_ID IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.DEALER_ORG_NAME IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.SHIPPING_METHOD IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.SETTLEMENT_ID IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.SETTLEMENT_DESC IS '??????';

COMMENT ON COLUMN DELIVERY_RECEIPT.RECEIVER_NAME IS '???';

COMMENT ON COLUMN DELIVERY_RECEIPT.RECEIVER_TEL IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.RECEIVER_FAX IS '??';

COMMENT ON COLUMN DELIVERY_RECEIPT.RECEIVER_ADDRESS IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.DELIVERY_DATE IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.ARRIVAL_DATE IS '??????';

COMMENT ON COLUMN DELIVERY_RECEIPT.CARRIER_ORG_ID IS '???????';

COMMENT ON COLUMN DELIVERY_RECEIPT.CARRIER_ORG_NAME IS '???????';

COMMENT ON COLUMN DELIVERY_RECEIPT.CARRIER_USER_NAME IS '???';

COMMENT ON COLUMN DELIVERY_RECEIPT.CARRIER_TEL IS '???????';

COMMENT ON COLUMN DELIVERY_RECEIPT.CARRIER_CAR IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.CARRIER_AMOUNT IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.PRODUCT_AMOUNT IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.AUDIT_STATUS IS '????:1:????2.?????3.????';

COMMENT ON COLUMN DELIVERY_RECEIPT.AUDIT_DESC IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.AUDIT_ID IS '???';

COMMENT ON COLUMN DELIVERY_RECEIPT.AUDIT_NAME IS '?????';

COMMENT ON COLUMN DELIVERY_RECEIPT.AUDIT_DATE IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.AUDIT_MESSAGE IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.DELIVERY_STATUS IS '????0 ??? 1 ??? 2 ??? 3 ???? 4 ????';

COMMENT ON COLUMN DELIVERY_RECEIPT.DELIVERY_DESC IS '??????';

COMMENT ON COLUMN DELIVERY_RECEIPT.IS_DEL IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.REMARK IS '??';

COMMENT ON COLUMN DELIVERY_RECEIPT.CREATE_ID IS '???';

COMMENT ON COLUMN DELIVERY_RECEIPT.CREATE_DATE IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.CREATE_ORG_ID IS '?????';

COMMENT ON COLUMN DELIVERY_RECEIPT.UPDATE_ID IS '???';

COMMENT ON COLUMN DELIVERY_RECEIPT.UPDATE_DATE IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.COMMIT_TYPE IS '????0????1-????';

COMMENT ON COLUMN DELIVERY_RECEIPT.COMMIT_ID IS '???';

COMMENT ON COLUMN DELIVERY_RECEIPT.COMMIT_TIME IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.SALES_TYPE IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.SALES_TYPE_DESC IS '??????';

COMMENT ON COLUMN DELIVERY_RECEIPT.FREIGHT_NO IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.RECEIVER_SITE IS '??????';

COMMENT ON COLUMN DELIVERY_RECEIPT.BILL_TYPE IS '单据类型';

COMMENT ON COLUMN DELIVERY_RECEIPT.RECEIVE_MESSAGE IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.BASIC_ID IS '???????ID';

COMMENT ON COLUMN DELIVERY_RECEIPT.COMMITMENT_TIME IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.DISPATCHER_NAME IS '???';

COMMENT ON COLUMN DELIVERY_RECEIPT.IS_ABNORMAL IS '?????0? 1?';

COMMENT ON COLUMN DELIVERY_RECEIPT.OUT_STATUS IS '???? 0???1????2???';

COMMENT ON COLUMN DELIVERY_RECEIPT.SEND_STATUS IS '???????? 0???1????2???';

COMMENT ON COLUMN DELIVERY_RECEIPT.ADDRESS_CODE IS '??????';

COMMENT ON COLUMN DELIVERY_RECEIPT.SHIPPING_METHOD_ID IS '??????';

COMMENT ON COLUMN DELIVERY_RECEIPT.SHIPPING_SECOND_METHOD IS '????????';

COMMENT ON COLUMN DELIVERY_RECEIPT.SHIPPING_SECOND_METHOD_ID IS '????????';

COMMENT ON COLUMN DELIVERY_RECEIPT.ATTACH_NAME IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.OUT_LOCATION IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.THREE_DAY_PLAN IS '???? 0??1??';

COMMENT ON COLUMN DELIVERY_RECEIPT.PLAN_DATE IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.EXPRESS_CODE IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.REAL_ARRIVAL_DATE IS '??????';

COMMENT ON COLUMN DELIVERY_RECEIPT.ARRIVAL_FLAG IS '?????0?1?';

COMMENT ON COLUMN DELIVERY_RECEIPT.SERVICE_NO IS '??????';

COMMENT ON COLUMN DELIVERY_RECEIPT.TOTAL_WEIGHT IS '???';

COMMENT ON COLUMN DELIVERY_RECEIPT.FREIGHT IS '??';

COMMENT ON COLUMN DELIVERY_RECEIPT.COUNTRY IS '??';

COMMENT ON COLUMN DELIVERY_RECEIPT.DELIVERY_TIME IS '???';

COMMENT ON COLUMN DELIVERY_RECEIPT.PURCHASE_CONTRACT_NO IS '?????';

COMMENT ON COLUMN DELIVERY_RECEIPT.CHECKER_NAME IS '???';

COMMENT ON COLUMN DELIVERY_RECEIPT.ACCESSORIES_FEE IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT.JCK_BILL_NO IS '??????';

COMMENT ON COLUMN DELIVERY_RECEIPT.SYNC_NS_STATUS IS '??NS???? 0 ??? 1 ??? 2 ????';

COMMENT ON TABLE DELIVERY_RECEIPT IS '?????';

-- ----------------------------
-- Table structure for DELIVERY_RECEIPT_DETAIL
-- ----------------------------
CREATE TABLE DELIVERY_RECEIPT_DETAIL (
DELIVERY_RECEIPT_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
DELIVERY_RECEIPT_NO VARCHAR2(30 BYTE) VISIBLE,
PACK_CODE VARCHAR2(50 CHAR) VISIBLE NOT NULL,
PACK_DESC VARCHAR2(50 CHAR) VISIBLE,
DELIVERY_QTY NUMBER(14,3) VISIBLE,
DELIVERY_WEIGHT NUMBER(11,2) VISIBLE,
RECEIVE_QTY NUMBER(14,3) VISIBLE,
RECEIVE_WEIGHT NUMBER(11,2) VISIBLE,
RECEIVE_REMARK VARCHAR2(200 CHAR) VISIBLE,
MACHINE_MODEL VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN DELIVERY_RECEIPT_DETAIL.DELIVERY_RECEIPT_ID IS '发运交接单id';

COMMENT ON COLUMN DELIVERY_RECEIPT_DETAIL.DELIVERY_RECEIPT_NO IS '???????';

COMMENT ON COLUMN DELIVERY_RECEIPT_DETAIL.PACK_CODE IS '箱形编号';

COMMENT ON COLUMN DELIVERY_RECEIPT_DETAIL.PACK_DESC IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT_DETAIL.DELIVERY_QTY IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT_DETAIL.DELIVERY_WEIGHT IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT_DETAIL.RECEIVE_QTY IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT_DETAIL.RECEIVE_WEIGHT IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT_DETAIL.RECEIVE_REMARK IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT_DETAIL.MACHINE_MODEL IS '??';

COMMENT ON TABLE DELIVERY_RECEIPT_DETAIL IS '??????????';

-- ----------------------------
-- Table structure for DELIVERY_RECEIPT_EXTEND
-- ----------------------------
CREATE TABLE DELIVERY_RECEIPT_EXTEND (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ESTIMATE_ARRIVAL_TIME DATE VISIBLE,
INSURED_AMOUNT NUMBER(20,0) VISIBLE
);

COMMENT ON COLUMN DELIVERY_RECEIPT_EXTEND.ESTIMATE_ARRIVAL_TIME IS '??????';

COMMENT ON COLUMN DELIVERY_RECEIPT_EXTEND.INSURED_AMOUNT IS '????';

COMMENT ON TABLE DELIVERY_RECEIPT_EXTEND IS '//DELIVERY_RECEIPT_EXTEND';

-- ----------------------------
-- Table structure for DELIVERY_RECEIPT_LINK
-- ----------------------------
CREATE TABLE DELIVERY_RECEIPT_LINK (
DELIVERY_BILL_ID VARCHAR2(20 BYTE) VISIBLE,
DELIVERY_BILL_NO VARCHAR2(30 BYTE) VISIBLE,
PURCHASE_BILL_ID VARCHAR2(20 BYTE) VISIBLE,
PURCHASE_BILL_NO VARCHAR2(100 BYTE) VISIBLE,
SALE_BILL_ID VARCHAR2(20 BYTE) VISIBLE,
SALE_BILL_NO VARCHAR2(30 BYTE) VISIBLE,
DELIVERY_NOTE_ID VARCHAR2(20 BYTE) VISIBLE,
DELIVERY_NOTE_NO VARCHAR2(30 BYTE) VISIBLE,
REMARK VARCHAR2(500 CHAR) VISIBLE,
BILL_TYPE VARCHAR2(20 CHAR) VISIBLE DEFAULT 'XGFT'  NOT NULL,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
B_ID VARCHAR2(20 BYTE) VISIBLE,
STATUS VARCHAR2(4 BYTE) VISIBLE
);

COMMENT ON COLUMN DELIVERY_RECEIPT_LINK.DELIVERY_BILL_ID IS '??id';

COMMENT ON COLUMN DELIVERY_RECEIPT_LINK.DELIVERY_BILL_NO IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT_LINK.PURCHASE_BILL_ID IS '????id';

COMMENT ON COLUMN DELIVERY_RECEIPT_LINK.PURCHASE_BILL_NO IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT_LINK.SALE_BILL_ID IS '????id';

COMMENT ON COLUMN DELIVERY_RECEIPT_LINK.SALE_BILL_NO IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT_LINK.DELIVERY_NOTE_ID IS '????id';

COMMENT ON COLUMN DELIVERY_RECEIPT_LINK.DELIVERY_NOTE_NO IS '??????';

COMMENT ON COLUMN DELIVERY_RECEIPT_LINK.REMARK IS '??';

COMMENT ON COLUMN DELIVERY_RECEIPT_LINK.BILL_TYPE IS '单据类型';

COMMENT ON COLUMN DELIVERY_RECEIPT_LINK.IS_DEL IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT_LINK.B_ID IS '??????id';

COMMENT ON COLUMN DELIVERY_RECEIPT_LINK.STATUS IS '??????';

COMMENT ON TABLE DELIVERY_RECEIPT_LINK IS '??????????';

-- ----------------------------
-- Table structure for DELIVERY_RECEIPT_LOGISTICS
-- ----------------------------
CREATE TABLE DELIVERY_RECEIPT_LOGISTICS (
ID VARCHAR2(45 BYTE) VISIBLE NOT NULL,
BILL_ID VARCHAR2(30 BYTE) VISIBLE,
BILL_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CREATE_ID VARCHAR2(30 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
ADDRESS VARCHAR2(500 CHAR) VISIBLE NOT NULL,
LOGISTICS_NAME VARCHAR2(30 CHAR) VISIBLE,
LOGISTICS_PHONE NUMBER VISIBLE
);

COMMENT ON COLUMN DELIVERY_RECEIPT_LOGISTICS.ID IS 'ID';

COMMENT ON COLUMN DELIVERY_RECEIPT_LOGISTICS.BILL_ID IS '?????ID';

COMMENT ON COLUMN DELIVERY_RECEIPT_LOGISTICS.BILL_NO IS '发运交接单单号';

COMMENT ON COLUMN DELIVERY_RECEIPT_LOGISTICS.CREATE_ID IS '???ID';

COMMENT ON COLUMN DELIVERY_RECEIPT_LOGISTICS.CREATE_NAME IS '?????';

COMMENT ON COLUMN DELIVERY_RECEIPT_LOGISTICS.ADDRESS IS '到达地址';

COMMENT ON COLUMN DELIVERY_RECEIPT_LOGISTICS.LOGISTICS_NAME IS '????';

COMMENT ON COLUMN DELIVERY_RECEIPT_LOGISTICS.LOGISTICS_PHONE IS '????';

COMMENT ON TABLE DELIVERY_RECEIPT_LOGISTICS IS '//DELIVERY_RECEIPT_LOGISTICS';

-- ----------------------------
-- Table structure for DELIVERY_RECEIPT_MATERIAL
-- ----------------------------
CREATE TABLE DELIVERY_RECEIPT_MATERIAL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DELIVERY_RECEIPT_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DELIVERY_RECEIPT_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(150 CHAR) VISIBLE NOT NULL,
UNIT VARCHAR2(30 CHAR) VISIBLE,
QTY NUMBER(14,3) VISIBLE DEFAULT 0   NOT NULL,
OUT_QTY NUMBER(13,3) VISIBLE DEFAULT 0   NOT NULL,
OUT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
SEND_QTY NUMBER(14,3) VISIBLE DEFAULT 0   NOT NULL,
IN_QTY NUMBER(14,3) VISIBLE DEFAULT 0   NOT NULL,
IN_STATUS NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
PUR_EXPECT_ARRIVAL_TIME TIMESTAMP(6) VISIBLE,
REMARK VARCHAR2(100 BYTE) VISIBLE,
MACHINE_MODEL VARCHAR2(200 BYTE) VISIBLE,
ORIGINAL_MATERIALS_NO VARCHAR2(500 CHAR) VISIBLE
);

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.ID IS '主键id';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.DELIVERY_RECEIPT_ID IS '发运交接单id';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.DELIVERY_RECEIPT_NO IS '发运交接单号';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.MATERIALS_DES IS '物料名称';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.UNIT IS '??';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.QTY IS '数量';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.OUT_QTY IS '已出库数量';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.OUT_STATUS IS '出库状态 0未出库1部分出库2已出库';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.SEND_QTY IS '已建其他入库数量';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.IN_QTY IS '已入库数量';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.IN_STATUS IS '入库状态 0未入库1部分入库2已入库';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.PUR_EXPECT_ARRIVAL_TIME IS '????????';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.REMARK IS '??';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.MACHINE_MODEL IS '??';

COMMENT ON COLUMN DELIVERY_RECEIPT_MATERIAL.ORIGINAL_MATERIALS_NO IS '???';

COMMENT ON TABLE DELIVERY_RECEIPT_MATERIAL IS '//DELIVERY_RECEIPT_MATERIAL';

-- ----------------------------
-- Table structure for DEPARTMENT_WAREHOUSE_RELATION
-- ----------------------------
CREATE TABLE DEPARTMENT_WAREHOUSE_RELATION (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
DEPARTMENT_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
WAREHOUSE_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
WAREHOUSE_CODE VARCHAR2(36 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
WAREHOUSE_INVERTORY_CONTROL NUMBER(1,0) VISIBLE DEFAULT '0',
DOCUMENT_MAJOR_CONTROL NUMBER(1,0) VISIBLE DEFAULT '0',
DOCUMENT_MINOR_CONTROL NUMBER(1,0) VISIBLE DEFAULT '0'
);

COMMENT ON COLUMN DEPARTMENT_WAREHOUSE_RELATION.ID IS '非业务主键id';

COMMENT ON COLUMN DEPARTMENT_WAREHOUSE_RELATION.DEPARTMENT_ID IS '部门id';

COMMENT ON COLUMN DEPARTMENT_WAREHOUSE_RELATION.ORG_ID IS '企业id';

COMMENT ON COLUMN DEPARTMENT_WAREHOUSE_RELATION.WAREHOUSE_ID IS '仓库id';

COMMENT ON COLUMN DEPARTMENT_WAREHOUSE_RELATION.IS_DEL IS '0-删除，1-未删除';

COMMENT ON COLUMN DEPARTMENT_WAREHOUSE_RELATION.WAREHOUSE_INVERTORY_CONTROL IS '??????????????????1??????0????????';

COMMENT ON COLUMN DEPARTMENT_WAREHOUSE_RELATION.DOCUMENT_MAJOR_CONTROL IS '???????????????--????? ? 1??????0?????';

COMMENT ON COLUMN DEPARTMENT_WAREHOUSE_RELATION.DOCUMENT_MINOR_CONTROL IS '???????????????--????? ? 1??????0?????';

COMMENT ON TABLE DEPARTMENT_WAREHOUSE_RELATION IS '//DEPARTMENT_WAREHOUSE_RELATION';

-- ----------------------------
-- Table structure for ENABLE_WAREHOUSE_CONTROL
-- ----------------------------
CREATE TABLE ENABLE_WAREHOUSE_CONTROL (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
DEPARTMENT_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
IS_ENABLE NUMBER VISIBLE DEFAULT 0  NOT NULL
);

COMMENT ON COLUMN ENABLE_WAREHOUSE_CONTROL.ID IS '非业务主键id';

COMMENT ON COLUMN ENABLE_WAREHOUSE_CONTROL.DEPARTMENT_ID IS '部门id';

COMMENT ON COLUMN ENABLE_WAREHOUSE_CONTROL.ORG_ID IS '企业id';

COMMENT ON COLUMN ENABLE_WAREHOUSE_CONTROL.IS_ENABLE IS '0-未启用,1-启用';

COMMENT ON TABLE ENABLE_WAREHOUSE_CONTROL IS '???????';

-- ----------------------------
-- Table structure for EXCIPIENT_BINDING_INFO
-- ----------------------------
CREATE TABLE EXCIPIENT_BINDING_INFO (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(15 BYTE) VISIBLE NOT NULL,
MATERIALS_DESC VARCHAR2(50 BYTE) VISIBLE,
UNIT VARCHAR2(20 BYTE) VISIBLE,
EXCIPIENT_NO VARCHAR2(15 BYTE) VISIBLE NOT NULL,
EXCIPIENT_DESC VARCHAR2(50 BYTE) VISIBLE,
EXCIPIENT_UNIT VARCHAR2(20 BYTE) VISIBLE,
BINDING_QTY NUMBER(9,3) VISIBLE,
EXCIPIENT_PRICE NUMBER(11,2) VISIBLE,
EXCIPIENT_AMOUNT NUMBER VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
CREATER_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
CREATER_NAME VARCHAR2(30 BYTE) VISIBLE NOT NULL,
UPDATE_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
UPDATE_TIME DATE VISIBLE NOT NULL,
UPDATE_NAME VARCHAR2(30 BYTE) VISIBLE NOT NULL
);

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.ID IS '主键ID';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.MATERIALS_NO IS '物料号';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.MATERIALS_DESC IS '????';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.UNIT IS '????';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.EXCIPIENT_NO IS '辅料物料号';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.EXCIPIENT_DESC IS '??????';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.EXCIPIENT_UNIT IS '????';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.BINDING_QTY IS '????';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.EXCIPIENT_PRICE IS '????';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.EXCIPIENT_AMOUNT IS '????';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.ORG_ID IS '??ID';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.CREATER_ID IS '添加人ID';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.CREATE_TIME IS '添加时间';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.CREATER_NAME IS '添加人姓名';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.UPDATE_ID IS '修改人ID';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.UPDATE_TIME IS '修改时间';

COMMENT ON COLUMN EXCIPIENT_BINDING_INFO.UPDATE_NAME IS '修改人姓名';

COMMENT ON TABLE EXCIPIENT_BINDING_INFO IS '???????';

-- ----------------------------
-- Table structure for EXPRESS_CODE_INFO
-- ----------------------------
CREATE TABLE EXPRESS_CODE_INFO (
ID NUMBER(10,0) VISIBLE NOT NULL,
EXPRESS_CODE VARCHAR2(30 BYTE) VISIBLE NOT NULL,
EXPRESS_NAME VARCHAR2(100 BYTE) VISIBLE NOT NULL,
ACTIVE_FLAG NUMBER(1,0) VISIBLE DEFAULT 1  NOT NULL,
EXPRESS_FLAG NUMBER(1,0) VISIBLE DEFAULT 1  NOT NULL,
ELEC_DOCUMENT_FLAG NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
RESERVATION_FLAG NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
REMARK VARCHAR2(1000 BYTE) VISIBLE,
ADD_TIME DATE VISIBLE DEFAULT sysdate  NOT NULL
);

COMMENT ON COLUMN EXPRESS_CODE_INFO.ID IS '主键';

COMMENT ON COLUMN EXPRESS_CODE_INFO.EXPRESS_CODE IS '快递公司编码';

COMMENT ON COLUMN EXPRESS_CODE_INFO.EXPRESS_NAME IS '快递公司名称';

COMMENT ON COLUMN EXPRESS_CODE_INFO.ACTIVE_FLAG IS '是否启用。0否1是';

COMMENT ON COLUMN EXPRESS_CODE_INFO.EXPRESS_FLAG IS '是否支持轨迹查询，即普通的快递查询。0否1是';

COMMENT ON COLUMN EXPRESS_CODE_INFO.ELEC_DOCUMENT_FLAG IS '是否支持电子面单。0否1是（快递接口支持功能，备件暂未使用190906）';

COMMENT ON COLUMN EXPRESS_CODE_INFO.RESERVATION_FLAG IS '是否支持预约取件。0否1是（快递接口支持功能，备件暂未使用190906）';

COMMENT ON COLUMN EXPRESS_CODE_INFO.REMARK IS '??';

COMMENT ON COLUMN EXPRESS_CODE_INFO.ADD_TIME IS '添加时间';

COMMENT ON TABLE EXPRESS_CODE_INFO IS '????????';

-- ----------------------------
-- Table structure for FAKE_CHECK_HANDLE
-- ----------------------------
CREATE TABLE FAKE_CHECK_HANDLE (
BARCODE_ID VARCHAR2(50 BYTE) VISIBLE NOT NULL,
HANDLE_ID VARCHAR2(500 BYTE) VISIBLE
);

COMMENT ON COLUMN FAKE_CHECK_HANDLE.BARCODE_ID IS '备件系统条码id，对应barcode_manage.barcode';

COMMENT ON COLUMN FAKE_CHECK_HANDLE.HANDLE_ID IS '???????????????handleId';

COMMENT ON TABLE FAKE_CHECK_HANDLE IS '???????????????handleId????????????';

-- ----------------------------
-- Table structure for FD_ARAP
-- ----------------------------
CREATE TABLE FD_ARAP (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ACC_ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ACC_ORG_NAME VARCHAR2(150 CHAR) VISIBLE,
DEALER_CODE VARCHAR2(30 CHAR) VISIBLE,
SUPPLIER_CODE VARCHAR2(30 CHAR) VISIBLE,
ARAP_TYPE NUMBER(1,0) VISIBLE NOT NULL,
RECEIVER_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
PAY_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
PREP_RECEIVER_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
PREP_PAY_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
CREATE_DATE TIMESTAMP(6) VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN FD_ARAP.ID IS '主键id';

COMMENT ON COLUMN FD_ARAP.ORG_ID IS '企业orgid';

COMMENT ON COLUMN FD_ARAP.ACC_ORG_ID IS '供应商或代理商orgid';

COMMENT ON COLUMN FD_ARAP.ACC_ORG_NAME IS '?????????';

COMMENT ON COLUMN FD_ARAP.DEALER_CODE IS '???SAP??';

COMMENT ON COLUMN FD_ARAP.SUPPLIER_CODE IS '???SAP??';

COMMENT ON COLUMN FD_ARAP.ARAP_TYPE IS '类型 0代理商1供应商';

COMMENT ON COLUMN FD_ARAP.RECEIVER_PRICE IS '????';

COMMENT ON COLUMN FD_ARAP.PAY_PRICE IS '????';

COMMENT ON COLUMN FD_ARAP.PREP_RECEIVER_PRICE IS '????';

COMMENT ON COLUMN FD_ARAP.PREP_PAY_PRICE IS '????';

COMMENT ON COLUMN FD_ARAP.CREATE_DATE IS '????';

COMMENT ON COLUMN FD_ARAP.UPDATE_DATE IS '????';

COMMENT ON TABLE FD_ARAP IS '?????';

-- ----------------------------
-- Table structure for FD_ARAP_DETAIL
-- ----------------------------
CREATE TABLE FD_ARAP_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SUPPLIER_ORG_ID VARCHAR2(30 CHAR) VISIBLE,
SUPPLIER_ORG_NAME VARCHAR2(150 CHAR) VISIBLE,
PURCHASE_ORG_ID VARCHAR2(30 CHAR) VISIBLE,
PURCHASE_ORG_NAME VARCHAR2(150 CHAR) VISIBLE,
DELIVERY_OUT_NO VARCHAR2(30 CHAR) VISIBLE,
BILL_NO VARCHAR2(30 CHAR) VISIBLE,
BILL_DATE TIMESTAMP(6) VISIBLE,
BILL_SINGLE VARCHAR2(30 CHAR) VISIBLE,
TOTAL_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
RECEIVE_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
REMAIN_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
IS_SETTLE NUMBER(1,0) VISIBLE DEFAULT 0  ,
CREATE_DATE TIMESTAMP(6) VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0  ,
BILL_ID VARCHAR2(30 CHAR) VISIBLE,
SALE_BILL_TYPE NUMBER(1,0) VISIBLE
);

COMMENT ON COLUMN FD_ARAP_DETAIL.ID IS '主键id';

COMMENT ON COLUMN FD_ARAP_DETAIL.SUPPLIER_ORG_ID IS '???orgid';

COMMENT ON COLUMN FD_ARAP_DETAIL.SUPPLIER_ORG_NAME IS '?????';

COMMENT ON COLUMN FD_ARAP_DETAIL.PURCHASE_ORG_ID IS '???orgid';

COMMENT ON COLUMN FD_ARAP_DETAIL.PURCHASE_ORG_NAME IS '?????';

COMMENT ON COLUMN FD_ARAP_DETAIL.DELIVERY_OUT_NO IS '????????';

COMMENT ON COLUMN FD_ARAP_DETAIL.BILL_NO IS '??????';

COMMENT ON COLUMN FD_ARAP_DETAIL.BILL_DATE IS '??????';

COMMENT ON COLUMN FD_ARAP_DETAIL.BILL_SINGLE IS '????';

COMMENT ON COLUMN FD_ARAP_DETAIL.TOTAL_PRICE IS '?????';

COMMENT ON COLUMN FD_ARAP_DETAIL.RECEIVE_PRICE IS '????';

COMMENT ON COLUMN FD_ARAP_DETAIL.REMAIN_PRICE IS '????';

COMMENT ON COLUMN FD_ARAP_DETAIL.IS_SETTLE IS '???? 0?1?';

COMMENT ON COLUMN FD_ARAP_DETAIL.CREATE_DATE IS '????';

COMMENT ON COLUMN FD_ARAP_DETAIL.UPDATE_DATE IS '????';

COMMENT ON COLUMN FD_ARAP_DETAIL.IS_DEL IS '???? 0?1?';

COMMENT ON COLUMN FD_ARAP_DETAIL.BILL_ID IS '?????ID';

COMMENT ON COLUMN FD_ARAP_DETAIL.SALE_BILL_TYPE IS '?????';

COMMENT ON TABLE FD_ARAP_DETAIL IS '???????';

-- ----------------------------
-- Table structure for FD_CHECK
-- ----------------------------
CREATE TABLE FD_CHECK (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CHECK_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SUPPLIER_ORG_ID VARCHAR2(30 CHAR) VISIBLE,
SUPPLIER_ORG_NAME VARCHAR2(150 CHAR) VISIBLE,
PURCHASE_ORG_ID VARCHAR2(30 CHAR) VISIBLE,
PURCHASE_ORG_NAME VARCHAR2(150 CHAR) VISIBLE,
CHECK_TYPE NUMBER(1,0) VISIBLE NOT NULL,
SETTLE_TYPE NUMBER(1,0) VISIBLE NOT NULL,
IS_REVERSE NUMBER(1,0) VISIBLE DEFAULT 0  ,
TOTAL_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
DISCOUNT_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
REAL_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
NOTE VARCHAR2(255 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(150 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
OPERATOR_ID VARCHAR2(30 CHAR) VISIBLE,
OPERATOR_NAME VARCHAR2(150 CHAR) VISIBLE,
ADVANCE_PAY_PRICE NUMBER(14,3) VISIBLE DEFAULT 0 ,
USE_VEHICLE_QUOTA NUMBER(14,3) VISIBLE DEFAULT 0 ,
SETTLEMENT_PRICE NUMBER(14,3) VISIBLE DEFAULT 0 ,
REFUND_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0
,
REFUND_ORDER_ID VARCHAR2(30 BYTE) VISIBLE,
PAY_TYPE NUMBER(2,0) VISIBLE,
PAY_DESC VARCHAR2(30 BYTE) VISIBLE,
DEALER_CODE VARCHAR2(100 BYTE) VISIBLE,
AUDIT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
PAYMENT_ACCOUNT VARCHAR2(50 BYTE) VISIBLE,
PAYMENT_BANK VARCHAR2(200 BYTE) VISIBLE,
PAYMENT_DATE DATE VISIBLE
);

COMMENT ON COLUMN FD_CHECK.ID IS '主键id';

COMMENT ON COLUMN FD_CHECK.CHECK_ORDER IS '单据号';

COMMENT ON COLUMN FD_CHECK.SUPPLIER_ORG_ID IS '???orgid';

COMMENT ON COLUMN FD_CHECK.SUPPLIER_ORG_NAME IS '?????';

COMMENT ON COLUMN FD_CHECK.PURCHASE_ORG_ID IS '???orgid';

COMMENT ON COLUMN FD_CHECK.PURCHASE_ORG_NAME IS '?????';

COMMENT ON COLUMN FD_CHECK.CHECK_TYPE IS '类型 0收款单1付款单';

COMMENT ON COLUMN FD_CHECK.SETTLE_TYPE IS '结算方式 0按订单结算1按金额结算';

COMMENT ON COLUMN FD_CHECK.IS_REVERSE IS '???? 0?1?';

COMMENT ON COLUMN FD_CHECK.TOTAL_PRICE IS '?????';

COMMENT ON COLUMN FD_CHECK.DISCOUNT_PRICE IS '????';

COMMENT ON COLUMN FD_CHECK.REAL_PRICE IS '????????';

COMMENT ON COLUMN FD_CHECK.NOTE IS '??';

COMMENT ON COLUMN FD_CHECK.CREATE_ID IS '???';

COMMENT ON COLUMN FD_CHECK.CREATE_NAME IS '?????';

COMMENT ON COLUMN FD_CHECK.CREATE_DATE IS '????';

COMMENT ON COLUMN FD_CHECK.OPERATOR_ID IS '???id';

COMMENT ON COLUMN FD_CHECK.OPERATOR_NAME IS '?????';

COMMENT ON COLUMN FD_CHECK.ADVANCE_PAY_PRICE IS '???????';

COMMENT ON COLUMN FD_CHECK.USE_VEHICLE_QUOTA IS '??????';

COMMENT ON COLUMN FD_CHECK.SETTLEMENT_PRICE IS '????';

COMMENT ON COLUMN FD_CHECK.REFUND_AMOUNT IS '????';

COMMENT ON COLUMN FD_CHECK.REFUND_ORDER_ID IS '????id';

COMMENT ON COLUMN FD_CHECK.PAY_TYPE IS '???????PayTypeEnum????';

COMMENT ON COLUMN FD_CHECK.PAY_DESC IS '??????';

COMMENT ON COLUMN FD_CHECK.DEALER_CODE IS '????';

COMMENT ON COLUMN FD_CHECK.AUDIT_STATUS IS '审核状态。0 待审核，1 审核通过';

COMMENT ON COLUMN FD_CHECK.PAYMENT_ACCOUNT IS '????';

COMMENT ON COLUMN FD_CHECK.PAYMENT_BANK IS '????';

COMMENT ON COLUMN FD_CHECK.PAYMENT_DATE IS '????';

COMMENT ON TABLE FD_CHECK IS '??????';

-- ----------------------------
-- Table structure for FD_CHECK_DETAIL
-- ----------------------------
CREATE TABLE FD_CHECK_DETAIL (
MAIN_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ARAP_DETAIL_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
BILL_NO VARCHAR2(30 CHAR) VISIBLE,
BILL_SINGLE VARCHAR2(30 CHAR) VISIBLE,
BILL_DATE TIMESTAMP(6) VISIBLE,
TOTAL_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
RECEIVE_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
CHECK_PRICE NUMBER(14,3) VISIBLE DEFAULT 0  ,
BILL_ID VARCHAR2(30 CHAR) VISIBLE,
SALE_BILL_TYPE NUMBER(1,0) VISIBLE,
REFUND_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0
,
SALE_NO VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN FD_CHECK_DETAIL.MAIN_ID IS '主表id';

COMMENT ON COLUMN FD_CHECK_DETAIL.ARAP_DETAIL_ID IS '应收应付详情id';

COMMENT ON COLUMN FD_CHECK_DETAIL.BILL_NO IS '???????';

COMMENT ON COLUMN FD_CHECK_DETAIL.BILL_SINGLE IS '????????';

COMMENT ON COLUMN FD_CHECK_DETAIL.BILL_DATE IS '??????????';

COMMENT ON COLUMN FD_CHECK_DETAIL.TOTAL_PRICE IS '?????';

COMMENT ON COLUMN FD_CHECK_DETAIL.RECEIVE_PRICE IS '??????';

COMMENT ON COLUMN FD_CHECK_DETAIL.CHECK_PRICE IS '????????';

COMMENT ON COLUMN FD_CHECK_DETAIL.BILL_ID IS '?????ID';

COMMENT ON COLUMN FD_CHECK_DETAIL.SALE_BILL_TYPE IS '?????';

COMMENT ON COLUMN FD_CHECK_DETAIL.REFUND_AMOUNT IS '????';

COMMENT ON COLUMN FD_CHECK_DETAIL.SALE_NO IS '?????';

COMMENT ON TABLE FD_CHECK_DETAIL IS '??????';

-- ----------------------------
-- Table structure for FD_INVOICE
-- ----------------------------
CREATE TABLE FD_INVOICE (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
INVOICE_NO VARCHAR2(60 CHAR) VISIBLE NOT NULL,
INVOICE_PAPER_NO VARCHAR2(200 CHAR) VISIBLE,
PRICE NUMBER(14,3) VISIBLE,
PAYER_ORG_ID VARCHAR2(30 CHAR) VISIBLE,
PAYER_ORG_NAME VARCHAR2(100 CHAR) VISIBLE,
PAYER_SAP_CODE VARCHAR2(30 CHAR) VISIBLE,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
SAP_CODE VARCHAR2(30 CHAR) VISIBLE,
ORDER_DATE TIMESTAMP(6) VISIBLE,
POST_DATE TIMESTAMP(6) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0  ,
IS_SIGN NUMBER(1,0) VISIBLE DEFAULT 0,
SIGN_ID VARCHAR2(30 CHAR) VISIBLE,
SIGN_NAME VARCHAR2(30 CHAR) VISIBLE,
SIGN_NOTE VARCHAR2(300 CHAR) VISIBLE,
SIGN_DATE TIMESTAMP(6) VISIBLE,
ORG_NAME VARCHAR2(100 CHAR) VISIBLE
);

COMMENT ON COLUMN FD_INVOICE.ID IS '主键id';

COMMENT ON COLUMN FD_INVOICE.INVOICE_NO IS '开票凭证';

COMMENT ON COLUMN FD_INVOICE.INVOICE_PAPER_NO IS '?????';

COMMENT ON COLUMN FD_INVOICE.PRICE IS '??????';

COMMENT ON COLUMN FD_INVOICE.PAYER_ORG_ID IS '???orgid';

COMMENT ON COLUMN FD_INVOICE.PAYER_ORG_NAME IS '?????';

COMMENT ON COLUMN FD_INVOICE.PAYER_SAP_CODE IS '??? (????)';

COMMENT ON COLUMN FD_INVOICE.ORG_ID IS '??orgid';

COMMENT ON COLUMN FD_INVOICE.SAP_CODE IS '??SAP??';

COMMENT ON COLUMN FD_INVOICE.ORDER_DATE IS '??????';

COMMENT ON COLUMN FD_INVOICE.POST_DATE IS '????';

COMMENT ON COLUMN FD_INVOICE.CREATE_DATE IS '????';

COMMENT ON COLUMN FD_INVOICE.IS_DEL IS '???? 0?1?';

COMMENT ON COLUMN FD_INVOICE.IS_SIGN IS '???? 0?1?';

COMMENT ON COLUMN FD_INVOICE.SIGN_ID IS '???id';

COMMENT ON COLUMN FD_INVOICE.SIGN_NAME IS '?????';

COMMENT ON COLUMN FD_INVOICE.SIGN_NOTE IS '????';

COMMENT ON COLUMN FD_INVOICE.SIGN_DATE IS '????';

COMMENT ON COLUMN FD_INVOICE.ORG_NAME IS '???????';

COMMENT ON TABLE FD_INVOICE IS '//FD_INVOICE';

-- ----------------------------
-- Table structure for FD_INVOICE_DETAIL
-- ----------------------------
CREATE TABLE FD_INVOICE_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
INVOICE_NO VARCHAR2(60 CHAR) VISIBLE NOT NULL,
INVOICE_PAPER_NO VARCHAR2(200 CHAR) VISIBLE,
DELIVERY_NO VARCHAR2(30 CHAR) VISIBLE,
DELIVERY_PRO_NO VARCHAR2(30 CHAR) VISIBLE,
SALE_DIST_NO VARCHAR2(30 CHAR) VISIBLE,
SALE_DIST_PRO_NO VARCHAR2(30 CHAR) VISIBLE,
ACCOUNT_NO VARCHAR2(30 CHAR) VISIBLE,
ACCOUNT_ROW_NO VARCHAR2(30 CHAR) VISIBLE,
MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE,
OUT_MATERIALS_GROUP VARCHAR2(30 CHAR) VISIBLE,
SERIAL_NO VARCHAR2(30 CHAR) VISIBLE,
UNIT_PRICE NUMBER(14,3) VISIBLE,
TOTAL_PRICE NUMBER(14,3) VISIBLE,
ORDER_DATE TIMESTAMP(6) VISIBLE,
POST_DATE TIMESTAMP(6) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0  ,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
UPDATE_TIME DATE VISIBLE
);

COMMENT ON COLUMN FD_INVOICE_DETAIL.ID IS '主键id';

COMMENT ON COLUMN FD_INVOICE_DETAIL.INVOICE_NO IS '开票凭证';

COMMENT ON COLUMN FD_INVOICE_DETAIL.INVOICE_PAPER_NO IS '?????';

COMMENT ON COLUMN FD_INVOICE_DETAIL.DELIVERY_NO IS '???????';

COMMENT ON COLUMN FD_INVOICE_DETAIL.DELIVERY_PRO_NO IS '????????';

COMMENT ON COLUMN FD_INVOICE_DETAIL.SALE_DIST_NO IS '????????';

COMMENT ON COLUMN FD_INVOICE_DETAIL.SALE_DIST_PRO_NO IS '???????????';

COMMENT ON COLUMN FD_INVOICE_DETAIL.ACCOUNT_NO IS '??????';

COMMENT ON COLUMN FD_INVOICE_DETAIL.ACCOUNT_ROW_NO IS '??????????';

COMMENT ON COLUMN FD_INVOICE_DETAIL.MATERIALS_NO IS '???';

COMMENT ON COLUMN FD_INVOICE_DETAIL.OUT_MATERIALS_GROUP IS '?????';

COMMENT ON COLUMN FD_INVOICE_DETAIL.SERIAL_NO IS '???';

COMMENT ON COLUMN FD_INVOICE_DETAIL.UNIT_PRICE IS '????';

COMMENT ON COLUMN FD_INVOICE_DETAIL.TOTAL_PRICE IS '??????';

COMMENT ON COLUMN FD_INVOICE_DETAIL.ORDER_DATE IS '??????';

COMMENT ON COLUMN FD_INVOICE_DETAIL.POST_DATE IS '????';

COMMENT ON COLUMN FD_INVOICE_DETAIL.IS_DEL IS '???? 0?1?';

COMMENT ON TABLE FD_INVOICE_DETAIL IS '//FD_INVOICE_DETAIL';

-- ----------------------------
-- Table structure for FD_PREP_PAY_DETAIL
-- ----------------------------
CREATE TABLE FD_PREP_PAY_DETAIL (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
CUSTOMER_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
CUSTOMER_NAME VARCHAR2(100 CHAR) VISIBLE,
BILL_NO VARCHAR2(20 BYTE) VISIBLE,
BILL_TYPE NUMBER(1,0) VISIBLE,
CREATE_DATE DATE VISIBLE NOT NULL,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
REMARK VARCHAR2(100 CHAR) VISIBLE,
TRANSACTION_AMOUNT NUMBER(22,3) VISIBLE DEFAULT 0  ,
TOTAL_AMOUNT NUMBER(22,3) VISIBLE DEFAULT 0  ,
DISCARD_DATE DATE VISIBLE,
DISCARD_PERSON_ID VARCHAR2(20 BYTE) VISIBLE,
DISCARD_FLAG NUMBER(1,0) VISIBLE DEFAULT 0  ,
DISCARD_REMARK VARCHAR2(100 CHAR) VISIBLE,
AUDIT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
PAY_TYPE NUMBER(2,0) VISIBLE,
SETTLE_TYPE VARCHAR2(10 BYTE) VISIBLE,
PAYMENT_DATE DATE VISIBLE,
PAYMENT_ACCOUNT VARCHAR2(30 BYTE) VISIBLE,
PAYMENT_BANK VARCHAR2(200 BYTE) VISIBLE
);

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.ID IS '结算卡明细表ID,非业务主键';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.ORG_ID IS '企业编号';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.CUSTOMER_ID IS '客户org_id';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.CUSTOMER_NAME IS '????';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.BILL_NO IS '????';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.BILL_TYPE IS '????(0:??,1:??,2:??)';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.CREATE_DATE IS '创建时间';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.CREATE_ID IS '创建人id';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.REMARK IS '??';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.TRANSACTION_AMOUNT IS '????';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.TOTAL_AMOUNT IS '???';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.DISCARD_DATE IS '????';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.DISCARD_PERSON_ID IS '?????id';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.DISCARD_FLAG IS '????(0:??1??)';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.DISCARD_REMARK IS '????';

COMMENT ON COLUMN FD_PREP_PAY_DETAIL.AUDIT_STATUS IS '?????0 ????1 ????';

COMMENT ON TABLE FD_PREP_PAY_DETAIL IS '//FD_PREP_PAY_DETAIL';

-- ----------------------------
-- Table structure for FD_REFUND_CHECK
-- ----------------------------
CREATE TABLE FD_REFUND_CHECK (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
REFUND_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
REFUND_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
REFUND_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CHECK_ID VARCHAR2(30 CHAR) VISIBLE,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
CHECK_TYPE NUMBER(1,0) VISIBLE NOT NULL,
SETTLE_TYPE NUMBER(1,0) VISIBLE NOT NULL,
IS_REVERSE NUMBER(1,0) VISIBLE DEFAULT 0,
TOTAL_PRICE NUMBER(14,3) VISIBLE DEFAULT 0,
LOSS_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0,
NOTE VARCHAR2(255 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(150 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
OPERATOR_ID VARCHAR2(30 CHAR) VISIBLE,
OPERATOR_NAME VARCHAR2(150 CHAR) VISIBLE,
ADVANCE_PAY_REFUND_PRICE NUMBER(14,3) VISIBLE,
USE_VEHICLE_REFUND_QUOTA NUMBER(14,3) VISIBLE,
REFUND_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0,
DEDUCTIBLE_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN FD_REFUND_CHECK.ID IS '主键id';

COMMENT ON COLUMN FD_REFUND_CHECK.REFUND_ORDER IS '退款单据号';

COMMENT ON COLUMN FD_REFUND_CHECK.REFUND_NO IS '退款单号';

COMMENT ON COLUMN FD_REFUND_CHECK.REFUND_ID IS '退款单id';

COMMENT ON COLUMN FD_REFUND_CHECK.CHECK_ID IS '???id';

COMMENT ON COLUMN FD_REFUND_CHECK.ORG_ID IS '??orgid';

COMMENT ON COLUMN FD_REFUND_CHECK.CHECK_TYPE IS '类型 0退款单';

COMMENT ON COLUMN FD_REFUND_CHECK.SETTLE_TYPE IS '结算方式 0按订单结算';

COMMENT ON COLUMN FD_REFUND_CHECK.IS_REVERSE IS '???? 0?1?';

COMMENT ON COLUMN FD_REFUND_CHECK.TOTAL_PRICE IS '?????';

COMMENT ON COLUMN FD_REFUND_CHECK.LOSS_AMOUNT IS '????';

COMMENT ON COLUMN FD_REFUND_CHECK.NOTE IS '??';

COMMENT ON COLUMN FD_REFUND_CHECK.CREATE_ID IS '???';

COMMENT ON COLUMN FD_REFUND_CHECK.CREATE_NAME IS '?????';

COMMENT ON COLUMN FD_REFUND_CHECK.CREATE_DATE IS '????';

COMMENT ON COLUMN FD_REFUND_CHECK.OPERATOR_ID IS '???id';

COMMENT ON COLUMN FD_REFUND_CHECK.OPERATOR_NAME IS '?????';

COMMENT ON COLUMN FD_REFUND_CHECK.ADVANCE_PAY_REFUND_PRICE IS '???????';

COMMENT ON COLUMN FD_REFUND_CHECK.USE_VEHICLE_REFUND_QUOTA IS '????????';

COMMENT ON COLUMN FD_REFUND_CHECK.REFUND_AMOUNT IS '????';

COMMENT ON COLUMN FD_REFUND_CHECK.DEDUCTIBLE_AMOUNT IS '??????';

COMMENT ON TABLE FD_REFUND_CHECK IS '????';

-- ----------------------------
-- Table structure for FORWARD_BARCODE_TRACE_INFO
-- ----------------------------
CREATE TABLE FORWARD_BARCODE_TRACE_INFO (
FORWARD_BARCODE VARCHAR2(30 BYTE) VISIBLE,
BELONG_ORGID VARCHAR2(30 BYTE) VISIBLE,
ORIGINAL_ORGID VARCHAR2(30 BYTE) VISIBLE,
MAINTENANCE_TYPE VARCHAR2(2 BYTE) VISIBLE,
CREATE_TIME TIMESTAMP(6) VISIBLE,
UPDATE_TIME TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN FORWARD_BARCODE_TRACE_INFO.FORWARD_BARCODE IS '?????????';

COMMENT ON COLUMN FORWARD_BARCODE_TRACE_INFO.BELONG_ORGID IS '??????????';

COMMENT ON COLUMN FORWARD_BARCODE_TRACE_INFO.ORIGINAL_ORGID IS '??????????';

COMMENT ON COLUMN FORWARD_BARCODE_TRACE_INFO.MAINTENANCE_TYPE IS 'A/B???  A?????? B???';

COMMENT ON COLUMN FORWARD_BARCODE_TRACE_INFO.CREATE_TIME IS '????';

COMMENT ON COLUMN FORWARD_BARCODE_TRACE_INFO.UPDATE_TIME IS '????';

COMMENT ON TABLE FORWARD_BARCODE_TRACE_INFO IS '???????????????????';

-- ----------------------------
-- Table structure for GPS_MM_SW_ORDER_LABEL
-- ----------------------------
CREATE TABLE GPS_MM_SW_ORDER_LABEL (
ID NUMBER(19,0) VISIBLE NOT NULL,
ORDER_ID NUMBER(19,0) VISIBLE,
ORDER_NO VARCHAR2(255 BYTE) VISIBLE,
BARCODE VARCHAR2(255 BYTE) VISIBLE,
UNIQUE_CODE VARCHAR2(255 BYTE) VISIBLE,
FACTORY VARCHAR2(255 BYTE) VISIBLE,
SUPPLIER_NO VARCHAR2(255 BYTE) VISIBLE,
STOCK VARCHAR2(255 BYTE) VISIBLE,
ORDER_NO_ROW NUMBER(20,0) VISIBLE,
CUR_PACKAGE_NUM NUMBER(20,0) VISIBLE,
PACKAGE_NUM NUMBER(20,0) VISIBLE,
PART_NO VARCHAR2(255 BYTE) VISIBLE,
USE_STATE NUMBER VISIBLE,
ORG_ID VARCHAR2(255 BYTE) VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN GPS_MM_SW_ORDER_LABEL.ORDER_ID IS '订单ID';

COMMENT ON COLUMN GPS_MM_SW_ORDER_LABEL.ORDER_NO IS 'orderNo';

COMMENT ON COLUMN GPS_MM_SW_ORDER_LABEL.BARCODE IS '条码内容';

COMMENT ON COLUMN GPS_MM_SW_ORDER_LABEL.UNIQUE_CODE IS '唯一码';

COMMENT ON COLUMN GPS_MM_SW_ORDER_LABEL.FACTORY IS '工厂';

COMMENT ON COLUMN GPS_MM_SW_ORDER_LABEL.SUPPLIER_NO IS '供应商代码';

COMMENT ON COLUMN GPS_MM_SW_ORDER_LABEL.STOCK IS '库存库位';

COMMENT ON COLUMN GPS_MM_SW_ORDER_LABEL.USE_STATE IS '使用状态,1已经生成转包单 0未生成';

COMMENT ON COLUMN GPS_MM_SW_ORDER_LABEL.ORG_ID IS '组织ID';

COMMENT ON TABLE GPS_MM_SW_ORDER_LABEL IS 'GPS订单条码表';

-- ----------------------------
-- Table structure for GPS_SW_ORDER
-- ----------------------------
CREATE TABLE GPS_SW_ORDER (
ORDER_ID NUMBER(19,0) VISIBLE NOT NULL,
ORDER_NO VARCHAR2(255 BYTE) VISIBLE,
FACTORY VARCHAR2(255 BYTE) VISIBLE,
ORDER_TYPE VARCHAR2(255 BYTE) VISIBLE,
SUPPLIER_NO VARCHAR2(255 BYTE) VISIBLE,
ARRIVE_DATE TIMESTAMP(6) VISIBLE,
SUP_PLACE_NO VARCHAR2(255 BYTE) VISIBLE,
ORDER_DATE TIMESTAMP(6) VISIBLE,
ORG_ID VARCHAR2(255 BYTE) VISIBLE,
SUPPLIER_NAME VARCHAR2(255 BYTE) VISIBLE,
LABEL_PRINT_STATUS CHAR(1 BYTE) VISIBLE,
UPDATE_TIME TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN GPS_SW_ORDER.ORDER_ID IS '订单ID';

COMMENT ON COLUMN GPS_SW_ORDER.ORDER_NO IS '订单号码';

COMMENT ON COLUMN GPS_SW_ORDER.FACTORY IS '到货工厂';

COMMENT ON COLUMN GPS_SW_ORDER.ORDER_TYPE IS '订单类型';

COMMENT ON COLUMN GPS_SW_ORDER.SUPPLIER_NO IS '供应商代码';

COMMENT ON COLUMN GPS_SW_ORDER.ARRIVE_DATE IS '交货日期';

COMMENT ON COLUMN GPS_SW_ORDER.SUP_PLACE_NO IS '出货地代码';

COMMENT ON COLUMN GPS_SW_ORDER.ORDER_DATE IS '订单时间';

COMMENT ON COLUMN GPS_SW_ORDER.ORG_ID IS '组织ID';

COMMENT ON COLUMN GPS_SW_ORDER.LABEL_PRINT_STATUS IS '打印状态，1已打印 0未打印';

COMMENT ON COLUMN GPS_SW_ORDER.UPDATE_TIME IS '更新时间';

COMMENT ON TABLE GPS_SW_ORDER IS 'GPS订单head表';

-- ----------------------------
-- Table structure for GPS_SW_ORDER_DETAIL
-- ----------------------------
CREATE TABLE GPS_SW_ORDER_DETAIL (
ORDER_DETAIL_ID NUMBER(19,0) VISIBLE NOT NULL,
ORDER_ID NUMBER(19,0) VISIBLE,
ORDER_NO VARCHAR2(255 BYTE) VISIBLE,
COMPONENT_NO VARCHAR2(255 BYTE) VISIBLE,
PACKAGE_NUM NUMBER VISIBLE,
PACKAGE_UNIT VARCHAR2(255 BYTE) VISIBLE,
XIANG_NUM NUMBER VISIBLE,
ISPIJIAN_FLG VARCHAR2(255 BYTE) VISIBLE,
RECEIVE_NUM NUMBER VISIBLE,
RECEIVE_STATUS VARCHAR2(255 BYTE) VISIBLE,
CANCEL_NUM NUMBER VISIBLE,
PICKUP_STATUS VARCHAR2(255 BYTE) VISIBLE,
ORDER_NUM NUMBER(19,5) VISIBLE,
MRP_SIGN VARCHAR2(255 BYTE) VISIBLE,
ORG_ID VARCHAR2(255 BYTE) VISIBLE,
UPDATE_TIME TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN GPS_SW_ORDER_DETAIL.ORDER_DETAIL_ID IS '主键';

COMMENT ON COLUMN GPS_SW_ORDER_DETAIL.COMPONENT_NO IS '零件编号';

COMMENT ON COLUMN GPS_SW_ORDER_DETAIL.PACKAGE_NUM IS '包装数量';

COMMENT ON COLUMN GPS_SW_ORDER_DETAIL.PACKAGE_UNIT IS '包装单位';

COMMENT ON COLUMN GPS_SW_ORDER_DETAIL.XIANG_NUM IS '箱数';

COMMENT ON COLUMN GPS_SW_ORDER_DETAIL.ISPIJIAN_FLG IS '是否批控制件 (Y/N)';

COMMENT ON COLUMN GPS_SW_ORDER_DETAIL.RECEIVE_NUM IS '收货数量';

COMMENT ON COLUMN GPS_SW_ORDER_DETAIL.RECEIVE_STATUS IS '收货状态';

COMMENT ON COLUMN GPS_SW_ORDER_DETAIL.CANCEL_NUM IS '取消数量';

COMMENT ON COLUMN GPS_SW_ORDER_DETAIL.PICKUP_STATUS IS '发货状态';

COMMENT ON COLUMN GPS_SW_ORDER_DETAIL.ORDER_NUM IS '订单数量';

COMMENT ON COLUMN GPS_SW_ORDER_DETAIL.MRP_SIGN IS '批次号';

COMMENT ON COLUMN GPS_SW_ORDER_DETAIL.UPDATE_TIME IS '更新时间';

COMMENT ON TABLE GPS_SW_ORDER_DETAIL IS 'GPS订单详情表';

-- ----------------------------
-- Table structure for HAT_AREA
-- ----------------------------
CREATE TABLE HAT_AREA (
RID NUMBER(11,0) VISIBLE NOT NULL,
AREA_ID VARCHAR2(50 BYTE) VISIBLE DEFAULT NULL,
AREA VARCHAR2(60 BYTE) VISIBLE DEFAULT NULL,
FATHER VARCHAR2(6 BYTE) VISIBLE DEFAULT NULL
);

COMMENT ON TABLE HAT_AREA IS '//HAT_AREA';

-- ----------------------------
-- Table structure for HAT_CITY
-- ----------------------------
CREATE TABLE HAT_CITY (
CID NUMBER(11,0) VISIBLE NOT NULL,
CITY_ID VARCHAR2(6 BYTE) VISIBLE DEFAULT NULL,
CITY VARCHAR2(50 BYTE) VISIBLE DEFAULT NULL,
FATHER VARCHAR2(6 BYTE) VISIBLE DEFAULT NULL
);

COMMENT ON TABLE HAT_CITY IS '//HAT_CITY';

-- ----------------------------
-- Table structure for HAT_PROVINCE
-- ----------------------------
CREATE TABLE HAT_PROVINCE (
SID NUMBER(11,0) VISIBLE NOT NULL,
PROVINCE_ID VARCHAR2(6 BYTE) VISIBLE DEFAULT NULL,
PROVINCE VARCHAR2(40 BYTE) VISIBLE DEFAULT NULL
);

COMMENT ON TABLE HAT_PROVINCE IS '//HAT_PROVINCE';

-- ----------------------------
-- Table structure for INITIAL_INVENTORY
-- ----------------------------
CREATE TABLE INITIAL_INVENTORY (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
BILL_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
IS_SYNSAP NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
IS_SYNSAP_SUCCESS NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
IN_LOCATION VARCHAR2(20 BYTE) VISIBLE,
STATE NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
NOTE VARCHAR2(255 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(50 BYTE) VISIBLE,
CREATE_ID VARCHAR2(30 BYTE) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
INNER_ORDER VARCHAR2(30 BYTE) VISIBLE,
INNER_ORDER_NOTE VARCHAR2(255 BYTE) VISIBLE,
DEPT VARCHAR2(30 BYTE) VISIBLE,
REMARK VARCHAR2(500 BYTE) VISIBLE,
IN_AREA VARCHAR2(60 BYTE) VISIBLE,
SAP_IN_AREA VARCHAR2(100 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
COUNTRY VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN INITIAL_INVENTORY.ID IS '入库id';

COMMENT ON COLUMN INITIAL_INVENTORY.BILL_NO IS '单据号';

COMMENT ON COLUMN INITIAL_INVENTORY.ORG_ID IS '企业标识';

COMMENT ON COLUMN INITIAL_INVENTORY.IS_SYNSAP IS '是否同步到sap 0否1是';

COMMENT ON COLUMN INITIAL_INVENTORY.IS_SYNSAP_SUCCESS IS '同步是否成功0否1是';

COMMENT ON COLUMN INITIAL_INVENTORY.IN_LOCATION IS '??????';

COMMENT ON COLUMN INITIAL_INVENTORY.STATE IS '状态 0未完成1部分完成2完成';

COMMENT ON COLUMN INITIAL_INVENTORY.NOTE IS '??';

COMMENT ON COLUMN INITIAL_INVENTORY.CREATE_NAME IS '???';

COMMENT ON COLUMN INITIAL_INVENTORY.CREATE_ID IS '?????';

COMMENT ON COLUMN INITIAL_INVENTORY.CREATE_DATE IS '????';

COMMENT ON COLUMN INITIAL_INVENTORY.INNER_ORDER IS '?????';

COMMENT ON COLUMN INITIAL_INVENTORY.INNER_ORDER_NOTE IS '???????';

COMMENT ON COLUMN INITIAL_INVENTORY.DEPT IS '??';

COMMENT ON COLUMN INITIAL_INVENTORY.REMARK IS '??';

COMMENT ON COLUMN INITIAL_INVENTORY.IN_AREA IS '????';

COMMENT ON COLUMN INITIAL_INVENTORY.SAP_IN_AREA IS 'SAP??';

COMMENT ON COLUMN INITIAL_INVENTORY.IS_DEL IS '????';

COMMENT ON COLUMN INITIAL_INVENTORY.COUNTRY IS '??';

COMMENT ON TABLE INITIAL_INVENTORY IS '?????';

-- ----------------------------
-- Table structure for INITIAL_INVENTORY_DETAIL
-- ----------------------------
CREATE TABLE INITIAL_INVENTORY_DETAIL (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MAIN_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MAN_NO VARCHAR2(30 BYTE) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
MATERIALS_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(100 CHAR) VISIBLE,
TOTAL_QTY NUMBER(14,3) VISIBLE NOT NULL,
MIN_PACK_QTY NUMBER(14,3) VISIBLE NOT NULL,
ORAWYD NVARCHAR2(20) VISIBLE,
VINID NVARCHAR2(25) VISIBLE,
PRINT_NUM NUMBER(14,3) VISIBLE DEFAULT 0  ,
STATE NUMBER(1,0) VISIBLE NOT NULL,
CREATE_DATE TIMESTAMP(6) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(50 BYTE) VISIBLE,
IN_NUM NUMBER(14,3) VISIBLE DEFAULT 0  ,
IN_LOCATION VARCHAR2(50 BYTE) VISIBLE,
UNIT_PRICE NUMBER(14,2) VISIBLE,
BATCH_NO VARCHAR2(20 BYTE) VISIBLE,
MACHINE_TYPE VARCHAR2(100 BYTE) VISIBLE
);

COMMENT ON COLUMN INITIAL_INVENTORY_DETAIL.MAIN_ID IS '主表id，对应INITIAL_INVENTORY.ID';

COMMENT ON COLUMN INITIAL_INVENTORY_DETAIL.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN INITIAL_INVENTORY_DETAIL.TOTAL_QTY IS '总数量';

COMMENT ON COLUMN INITIAL_INVENTORY_DETAIL.MIN_PACK_QTY IS '最小包装数';

COMMENT ON COLUMN INITIAL_INVENTORY_DETAIL.STATE IS '入库状态，0未入库1部分入库2已入库';

COMMENT ON COLUMN INITIAL_INVENTORY_DETAIL.CREATE_DATE IS '????';

COMMENT ON COLUMN INITIAL_INVENTORY_DETAIL.IN_NUM IS '????';

COMMENT ON COLUMN INITIAL_INVENTORY_DETAIL.IN_LOCATION IS '??';

COMMENT ON COLUMN INITIAL_INVENTORY_DETAIL.UNIT_PRICE IS '??';

COMMENT ON COLUMN INITIAL_INVENTORY_DETAIL.BATCH_NO IS '???';

COMMENT ON COLUMN INITIAL_INVENTORY_DETAIL.MACHINE_TYPE IS '????';

COMMENT ON TABLE INITIAL_INVENTORY_DETAIL IS '???????';

-- ----------------------------
-- Table structure for INVENTORY_BUSINESS_CONFIG
-- ----------------------------
CREATE TABLE INVENTORY_BUSINESS_CONFIG (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
RATING_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CLIENT_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CLIENT_NAME VARCHAR2(100 CHAR) VISIBLE,
INACCURATE_DEDUCTION NUMBER(4,0) VISIBLE DEFAULT 0,
BUSINESS_SCORE NUMBER(4,0) VISIBLE DEFAULT 0,
SCORE NUMBER(4,0) VISIBLE DEFAULT 0,
REMARK VARCHAR2(200 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
CREATOR_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 CHAR) VISIBLE,
MODIFIER_NAME VARCHAR2(50 CHAR) VISIBLE,
MODIFY_TIME DATE VISIBLE
);

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.ID IS '非业务主键id';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.RATING_ID IS '评级信息id';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.CLIENT_ID IS '客户id';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.CLIENT_NAME IS '????';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.INACCURATE_DEDUCTION IS '???????';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.BUSINESS_SCORE IS '???????';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.SCORE IS '??';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.REMARK IS '??';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.IS_DEL IS '????(0??1?)';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.CREATOR_ID IS '创建人id';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.CREATOR_NAME IS '创建人姓名';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN INVENTORY_BUSINESS_CONFIG.MODIFY_TIME IS '????';

COMMENT ON TABLE INVENTORY_BUSINESS_CONFIG IS '?????????????';

-- ----------------------------
-- Table structure for INVENTORY_CHECK
-- ----------------------------
CREATE TABLE INVENTORY_CHECK (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
CHECK_ORDER_NO VARCHAR2(20 BYTE) VISIBLE NOT NULL,
CHECK_ORDER_DES VARCHAR2(200 CHAR) VISIBLE NOT NULL,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
ENFORCED VARCHAR2(20 BYTE) VISIBLE,
PLANNED NUMBER(1,0) VISIBLE,
PLANNED_DATE TIMESTAMP(6) VISIBLE NOT NULL,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATE_DATE TIMESTAMP(6) VISIBLE,
START_ID VARCHAR2(20 BYTE) VISIBLE,
START_NAME VARCHAR2(30 CHAR) VISIBLE,
START_DATE TIMESTAMP(6) VISIBLE,
END_DATE TIMESTAMP(6) VISIBLE,
REMARK VARCHAR2(200 CHAR) VISIBLE,
DELETED NUMBER VISIBLE DEFAULT 0   NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
WAREHOUSE_CODE VARCHAR2(50 CHAR) VISIBLE,
LOCATION_CODES_STR VARCHAR2(200 CHAR) VISIBLE,
CHECK_TYPE NUMBER(2,0) VISIBLE,
SHLEF_NO VARCHAR2(60 CHAR) VISIBLE
);

COMMENT ON COLUMN INVENTORY_CHECK.CHECK_ORDER_NO IS '盘点单号';

COMMENT ON COLUMN INVENTORY_CHECK.CHECK_ORDER_DES IS '盘点单简单描述';

COMMENT ON COLUMN INVENTORY_CHECK.STATUS IS '0-未盘点，1-启动盘点，2-盘点结束，3-终止';

COMMENT ON COLUMN INVENTORY_CHECK.ENFORCED IS '??????';

COMMENT ON COLUMN INVENTORY_CHECK.PLANNED IS '?????';

COMMENT ON COLUMN INVENTORY_CHECK.PLANNED_DATE IS '计划开始日期';

COMMENT ON COLUMN INVENTORY_CHECK.CREATE_ID IS '???Id';

COMMENT ON COLUMN INVENTORY_CHECK.CREATE_NAME IS '创建人名称';

COMMENT ON COLUMN INVENTORY_CHECK.CREATE_DATE IS '????';

COMMENT ON COLUMN INVENTORY_CHECK.START_ID IS '???Id';

COMMENT ON COLUMN INVENTORY_CHECK.START_NAME IS '?????';

COMMENT ON COLUMN INVENTORY_CHECK.START_DATE IS '????';

COMMENT ON COLUMN INVENTORY_CHECK.END_DATE IS '????';

COMMENT ON COLUMN INVENTORY_CHECK.REMARK IS '??';

COMMENT ON COLUMN INVENTORY_CHECK.DELETED IS '是否删除，0否1是';

COMMENT ON COLUMN INVENTORY_CHECK.CHECK_TYPE IS '0:?????1???????2??????3??????4???????';

COMMENT ON COLUMN INVENTORY_CHECK.SHLEF_NO IS '????';

COMMENT ON TABLE INVENTORY_CHECK IS '//INVENTORY_CHECK';

-- ----------------------------
-- Table structure for INVENTORY_CHECK_DETAIL
-- ----------------------------
CREATE TABLE INVENTORY_CHECK_DETAIL (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
CHECK_ORDER_NO VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(20 BYTE) VISIBLE NOT NULL,
BAR_CODE VARCHAR2(50 BYTE) VISIBLE NOT NULL,
SYS_AMOUNT NUMBER(23,3) VISIBLE NOT NULL,
ACT_AMOUNT NUMBER(23,3) VISIBLE,
WARHOUSE_CODE VARCHAR2(64 BYTE) VISIBLE,
AREA_CODE VARCHAR2(64 BYTE) VISIBLE,
LOACTION_CODE VARCHAR2(64 BYTE) VISIBLE,
ADJUSTED NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
DOCUMENT_NO VARCHAR2(20 BYTE) VISIBLE,
DELETED NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
RESULT_TYPE NUMBER(1,0) VISIBLE,
STATE NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
INVENTORY_USER_ID VARCHAR2(20 BYTE) VISIBLE,
INVENTORY_USER_NAME VARCHAR2(20 CHAR) VISIBLE,
INVENTORY_DATE TIMESTAMP(6) VISIBLE,
ADJUST_USER_ID VARCHAR2(20 BYTE) VISIBLE,
ADJUST_USER_NAME VARCHAR2(20 CHAR) VISIBLE,
ADJUST_DATE TIMESTAMP(6) VISIBLE,
CHECK_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
DEPOSITARY_ID VARCHAR2(255 CHAR) VISIBLE,
DEPOSITARY_NAME VARCHAR2(255 CHAR) VISIBLE
);

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.ID IS '主键id';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.CHECK_ORDER_NO IS '主表单据号，对应INVENTORY_CHECK.CHECK_ORDER_NO';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.MATERIALS_NO IS '物料号';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.BAR_CODE IS '条码';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.SYS_AMOUNT IS '系统中数量';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.ACT_AMOUNT IS '??????';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.WARHOUSE_CODE IS '????';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.AREA_CODE IS '????';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.LOACTION_CODE IS '????';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.ADJUSTED IS '??????
';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.DOCUMENT_NO IS '?????';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.DELETED IS '是否删除';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.RESULT_TYPE IS '???? 0??1??2??';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.STATE IS '0未盘点1已盘点';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.INVENTORY_USER_ID IS '???id';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.INVENTORY_USER_NAME IS '???Name';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.INVENTORY_DATE IS '????';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.ADJUST_USER_ID IS '???id';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.ADJUST_USER_NAME IS '???name';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.ADJUST_DATE IS '????';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.CHECK_ID IS '主表ID';

COMMENT ON COLUMN INVENTORY_CHECK_DETAIL.ORG_ID IS '企业ID';

COMMENT ON TABLE INVENTORY_CHECK_DETAIL IS '//INVENTORY_CHECK_DETAIL';

-- ----------------------------
-- Table structure for IUS_ACCOUNT
-- ----------------------------
CREATE TABLE IUS_ACCOUNT (
USER_ID VARCHAR2(20 CHAR) VISIBLE NOT NULL,
LOGIN_NAME VARCHAR2(128 CHAR) VISIBLE,
LAST_LOGIN_TIME TIMESTAMP(6) VISIBLE,
LAST_LOGIN_IP VARCHAR2(64 CHAR) VISIBLE,
STATUS NUMBER VISIBLE,
CREATE_TIME TIMESTAMP(6) VISIBLE,
UPDATE_TIME TIMESTAMP(6) VISIBLE
);

COMMENT ON TABLE IUS_ACCOUNT IS '//IUS_ACCOUNT';

-- ----------------------------
-- Table structure for IUS_ACCOUNT_LOGIN_RECORD
-- ----------------------------
CREATE TABLE IUS_ACCOUNT_LOGIN_RECORD (
USER_ID VARCHAR2(30 CHAR) VISIBLE,
USER_LOGIN_NAME VARCHAR2(60 CHAR) VISIBLE,
LOGIN_IP VARCHAR2(100 CHAR) VISIBLE,
IP_HOME VARCHAR2(100 CHAR) VISIBLE,
LOGIN_TIME TIMESTAMP(6) VISIBLE,
USER_NAME VARCHAR2(30 CHAR) VISIBLE,
SPACE_ID VARCHAR2(30 CHAR) VISIBLE,
ID VARCHAR2(25 BYTE) VISIBLE
);

COMMENT ON COLUMN IUS_ACCOUNT_LOGIN_RECORD.USER_ID IS '????id';

COMMENT ON COLUMN IUS_ACCOUNT_LOGIN_RECORD.USER_LOGIN_NAME IS '??????';

COMMENT ON COLUMN IUS_ACCOUNT_LOGIN_RECORD.LOGIN_IP IS '??ip';

COMMENT ON COLUMN IUS_ACCOUNT_LOGIN_RECORD.IP_HOME IS '??IP??';

COMMENT ON COLUMN IUS_ACCOUNT_LOGIN_RECORD.LOGIN_TIME IS '????';

COMMENT ON COLUMN IUS_ACCOUNT_LOGIN_RECORD.USER_NAME IS '?????????profile???name';

COMMENT ON COLUMN IUS_ACCOUNT_LOGIN_RECORD.SPACE_ID IS '???????????profile???spaceId';

COMMENT ON COLUMN IUS_ACCOUNT_LOGIN_RECORD.ID IS 'id??';

COMMENT ON TABLE IUS_ACCOUNT_LOGIN_RECORD IS '//IUS_ACCOUNT_LOGIN_RECORD';

-- ----------------------------
-- Table structure for IUS_AUTH
-- ----------------------------
CREATE TABLE IUS_AUTH (
AUTH_ID NUMBER(10,0) VISIBLE NOT NULL,
AUTH_NAME VARCHAR2(22 CHAR) VISIBLE,
AUTH_DESC VARCHAR2(66 BYTE) VISIBLE
);

COMMENT ON COLUMN IUS_AUTH.AUTH_ID IS '??id';

COMMENT ON COLUMN IUS_AUTH.AUTH_NAME IS '??????';

COMMENT ON COLUMN IUS_AUTH.AUTH_DESC IS '????';

COMMENT ON TABLE IUS_AUTH IS '//IUS_AUTH';

-- ----------------------------
-- Table structure for IUS_DEPARTMENT
-- ----------------------------
CREATE TABLE IUS_DEPARTMENT (
ID VARCHAR2(20 CHAR) VISIBLE NOT NULL,
SPACE_ID VARCHAR2(20 CHAR) VISIBLE,
NAME VARCHAR2(50 CHAR) VISIBLE,
CODE VARCHAR2(50 CHAR) VISIBLE,
PARENT_ID VARCHAR2(20 CHAR) VISIBLE,
SEQ NUMBER VISIBLE,
LEAF NUMBER VISIBLE,
STATUS NUMBER VISIBLE DEFAULT 0
);

COMMENT ON COLUMN IUS_DEPARTMENT.ID IS 'ID';

COMMENT ON COLUMN IUS_DEPARTMENT.LEAF IS '1?????';

COMMENT ON TABLE IUS_DEPARTMENT IS '//IUS_DEPARTMENT';

-- ----------------------------
-- Table structure for IUS_EMPLOYEE
-- ----------------------------
CREATE TABLE IUS_EMPLOYEE (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CNAME VARCHAR2(30 CHAR) VISIBLE,
JOB_ID VARCHAR2(30 CHAR) VISIBLE,
JOB VARCHAR2(30 CHAR) VISIBLE,
CONTACT_TEL VARCHAR2(15 CHAR) VISIBLE,
ID_NUMBER VARCHAR2(20 CHAR) VISIBLE,
GENDER NUMBER(1,0) VISIBLE DEFAULT 0,
HIREDATE TIMESTAMP(6) VISIBLE,
PART_TIME_JOB NUMBER(1,0) VISIBLE DEFAULT 0,
SEC_JOB_ID VARCHAR2(30 CHAR) VISIBLE,
SEC_JOB VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
CREATE_NAME VARCHAR2(30 CHAR) VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE,
UPDATE_NAME VARCHAR2(30 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN IUS_EMPLOYEE.ID IS '唯一标识';

COMMENT ON COLUMN IUS_EMPLOYEE.ORG_ID IS '组织ID';

COMMENT ON COLUMN IUS_EMPLOYEE.CNAME IS '??';

COMMENT ON COLUMN IUS_EMPLOYEE.JOB_ID IS '????';

COMMENT ON COLUMN IUS_EMPLOYEE.JOB IS '??';

COMMENT ON COLUMN IUS_EMPLOYEE.CONTACT_TEL IS '????';

COMMENT ON COLUMN IUS_EMPLOYEE.ID_NUMBER IS '????';

COMMENT ON COLUMN IUS_EMPLOYEE.GENDER IS '??';

COMMENT ON COLUMN IUS_EMPLOYEE.HIREDATE IS '????';

COMMENT ON COLUMN IUS_EMPLOYEE.PART_TIME_JOB IS '????';

COMMENT ON COLUMN IUS_EMPLOYEE.SEC_JOB_ID IS '????ID';

COMMENT ON COLUMN IUS_EMPLOYEE.SEC_JOB IS '????';

COMMENT ON COLUMN IUS_EMPLOYEE.CREATE_DATE IS '????';

COMMENT ON COLUMN IUS_EMPLOYEE.CREATE_NAME IS '???';

COMMENT ON COLUMN IUS_EMPLOYEE.UPDATE_DATE IS '????';

COMMENT ON COLUMN IUS_EMPLOYEE.UPDATE_NAME IS '???';

COMMENT ON COLUMN IUS_EMPLOYEE.IS_DEL IS '??????';

COMMENT ON TABLE IUS_EMPLOYEE IS '??????';

-- ----------------------------
-- Table structure for IUS_EMPLOYEE_SETTING
-- ----------------------------
CREATE TABLE IUS_EMPLOYEE_SETTING (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
JOB_ID VARCHAR2(30 CHAR) VISIBLE,
JOB VARCHAR2(30 CHAR) VISIBLE,
NUMBER_EMP NUMBER(10,0) VISIBLE DEFAULT 0,
CREATE_DATE TIMESTAMP(6) VISIBLE,
CREATE_NAME VARCHAR2(30 CHAR) VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE,
UPDATE_NAME VARCHAR2(30 CHAR) VISIBLE,
FACTORY_ORG_ID VARCHAR2(30 CHAR) VISIBLE
);

COMMENT ON COLUMN IUS_EMPLOYEE_SETTING.ID IS '唯一标识';

COMMENT ON COLUMN IUS_EMPLOYEE_SETTING.ORG_ID IS '组织ID';

COMMENT ON COLUMN IUS_EMPLOYEE_SETTING.JOB_ID IS '岗位标识';

COMMENT ON COLUMN IUS_EMPLOYEE_SETTING.JOB IS '??';

COMMENT ON COLUMN IUS_EMPLOYEE_SETTING.NUMBER_EMP IS '??????';

COMMENT ON COLUMN IUS_EMPLOYEE_SETTING.CREATE_DATE IS '????';

COMMENT ON COLUMN IUS_EMPLOYEE_SETTING.CREATE_NAME IS '???';

COMMENT ON COLUMN IUS_EMPLOYEE_SETTING.UPDATE_DATE IS '????';

COMMENT ON COLUMN IUS_EMPLOYEE_SETTING.UPDATE_NAME IS '???';

COMMENT ON COLUMN IUS_EMPLOYEE_SETTING.FACTORY_ORG_ID IS '主机厂组织ID';

COMMENT ON TABLE IUS_EMPLOYEE_SETTING IS '????????????';

-- ----------------------------
-- Table structure for IUS_MENU
-- ----------------------------
CREATE TABLE IUS_MENU (
ID NUMBER(10,0) VISIBLE NOT NULL,
NAME VARCHAR2(50 CHAR) VISIBLE,
CODE VARCHAR2(10 CHAR) VISIBLE,
PARENT_ID NUMBER(10,0) VISIBLE,
SEQ NUMBER(9,0) VISIBLE,
ICON VARCHAR2(255 CHAR) VISIBLE,
STATE VARCHAR2(255 CHAR) VISIBLE,
SHOW_FLAG NUMBER(1,0) VISIBLE,
URL VARCHAR2(255 CHAR) VISIBLE,
CHANNEL NUMBER(9,0) VISIBLE DEFAULT 0  ,
LEAF NUMBER(1,0) VISIBLE,
SITE NUMBER VISIBLE
);

COMMENT ON TABLE IUS_MENU IS '//IUS_MENU';

-- ----------------------------
-- Table structure for IUS_MENU_AUTH
-- ----------------------------
CREATE TABLE IUS_MENU_AUTH (
ID NUMBER(10,0) VISIBLE NOT NULL,
MENU_ID NUMBER(10,0) VISIBLE,
AUTH_ID NUMBER(10,0) VISIBLE,
STATUS NUMBER VISIBLE
);

COMMENT ON TABLE IUS_MENU_AUTH IS '?????????';

-- ----------------------------
-- Table structure for IUS_OP_LOG
-- ----------------------------
CREATE TABLE IUS_OP_LOG (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
SEARCH_ID VARCHAR2(255 BYTE) VISIBLE,
ORG_ID VARCHAR2(255 BYTE) VISIBLE,
MSG_JSON VARCHAR2(2000 BYTE) VISIBLE,
METHOD VARCHAR2(1000 BYTE) VISIBLE,
RESULT_MSG VARCHAR2(2000 BYTE) VISIBLE,
USER_ID VARCHAR2(32 BYTE) VISIBLE,
USER_NAME VARCHAR2(255 BYTE) VISIBLE,
UPDATED_TIME TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN IUS_OP_LOG.ID IS 'PK';

COMMENT ON COLUMN IUS_OP_LOG.SEARCH_ID IS '?????id,????';

COMMENT ON COLUMN IUS_OP_LOG.ORG_ID IS '?????orgId';

COMMENT ON COLUMN IUS_OP_LOG.MSG_JSON IS '??????';

COMMENT ON COLUMN IUS_OP_LOG.METHOD IS '??';

COMMENT ON COLUMN IUS_OP_LOG.RESULT_MSG IS '??(??)';

COMMENT ON COLUMN IUS_OP_LOG.USER_ID IS '??';

COMMENT ON COLUMN IUS_OP_LOG.USER_NAME IS '??';

COMMENT ON COLUMN IUS_OP_LOG.UPDATED_TIME IS '????';

COMMENT ON TABLE IUS_OP_LOG IS '????????';

-- ----------------------------
-- Table structure for IUS_PASSWORD
-- ----------------------------
CREATE TABLE IUS_PASSWORD (
USER_ID VARCHAR2(20 CHAR) VISIBLE NOT NULL,
PASSWORD VARCHAR2(128 CHAR) VISIBLE,
UPDATE_TIME TIMESTAMP(6) VISIBLE,
TYPE NUMBER VISIBLE DEFAULT 0
);

COMMENT ON COLUMN IUS_PASSWORD.PASSWORD IS '?????md5?';

COMMENT ON COLUMN IUS_PASSWORD.TYPE IS '?????????????????????????????';

COMMENT ON TABLE IUS_PASSWORD IS '//IUS_PASSWORD';

-- ----------------------------
-- Table structure for IUS_PROFILE
-- ----------------------------
CREATE TABLE IUS_PROFILE (
ID VARCHAR2(20 CHAR) VISIBLE,
NAME VARCHAR2(255 CHAR) VISIBLE,
MOBILE VARCHAR2(18 CHAR) VISIBLE,
TELEPHONE VARCHAR2(20 CHAR) VISIBLE,
SEX NUMBER VISIBLE,
DEPT_ID VARCHAR2(20 CHAR) VISIBLE,
ICON VARCHAR2(50 CHAR) VISIBLE,
NICKNAME VARCHAR2(50 CHAR) VISIBLE,
EMAIL VARCHAR2(50 CHAR) VISIBLE,
REMARK VARCHAR2(500 CHAR) VISIBLE,
LOCKED NUMBER VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
SPACE_ID VARCHAR2(20 CHAR) VISIBLE,
ID_NUMBER VARCHAR2(20 BYTE) VISIBLE,
AREA_CODE VARCHAR2(20 BYTE) VISIBLE,
SAP_CODE VARCHAR2(30 CHAR) VISIBLE,
IS_SERVICE VARCHAR2(4 BYTE) VISIBLE DEFAULT '0',
PURCHASE_GROUP VARCHAR2(30 CHAR) VISIBLE,
CODE400 VARCHAR2(255 BYTE) VISIBLE,
IMG_URL VARCHAR2(255 BYTE) VISIBLE,
JOB_ID VARCHAR2(50 BYTE) VISIBLE,
SCORE NUMBER(14,3) VISIBLE
);

COMMENT ON COLUMN IUS_PROFILE.NAME IS '??';

COMMENT ON COLUMN IUS_PROFILE.MOBILE IS '???';

COMMENT ON COLUMN IUS_PROFILE.TELEPHONE IS '????';

COMMENT ON COLUMN IUS_PROFILE.SEX IS '???0??1??';

COMMENT ON COLUMN IUS_PROFILE.DEPT_ID IS '??ID';

COMMENT ON COLUMN IUS_PROFILE.ICON IS '??';

COMMENT ON COLUMN IUS_PROFILE.NICKNAME IS '??';

COMMENT ON COLUMN IUS_PROFILE.EMAIL IS '??';

COMMENT ON COLUMN IUS_PROFILE.REMARK IS '??';

COMMENT ON COLUMN IUS_PROFILE.LOCKED IS '0???1??';

COMMENT ON COLUMN IUS_PROFILE.SPACE_ID IS '????ID';

COMMENT ON COLUMN IUS_PROFILE.ID_NUMBER IS '????';

COMMENT ON COLUMN IUS_PROFILE.AREA_CODE IS '????';

COMMENT ON COLUMN IUS_PROFILE.SAP_CODE IS 'SAP??';

COMMENT ON COLUMN IUS_PROFILE.IS_SERVICE IS '??????';

COMMENT ON COLUMN IUS_PROFILE.PURCHASE_GROUP IS '???';

COMMENT ON COLUMN IUS_PROFILE.IMG_URL IS '??';

COMMENT ON COLUMN IUS_PROFILE.JOB_ID IS '??id';

COMMENT ON COLUMN IUS_PROFILE.SCORE IS '??';

COMMENT ON TABLE IUS_PROFILE IS '//IUS_PROFILE';

-- ----------------------------
-- Table structure for IUS_ROLE
-- ----------------------------
CREATE TABLE IUS_ROLE (
ID VARCHAR2(20 CHAR) VISIBLE NOT NULL,
NAME VARCHAR2(32 CHAR) VISIBLE,
REMARK VARCHAR2(128 CHAR) VISIBLE,
TYPE NUMBER(9,0) VISIBLE DEFAULT 1  ,
CHANNEL NUMBER(9,0) VISIBLE DEFAULT 0  ,
SPACE_ID VARCHAR2(20 CHAR) VISIBLE,
DEPT_ID VARCHAR2(20 BYTE) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN IUS_ROLE.REMARK IS '9:???????????';

COMMENT ON COLUMN IUS_ROLE.TYPE IS '1???????2????';

COMMENT ON COLUMN IUS_ROLE.DEPT_ID IS '????ID';

COMMENT ON TABLE IUS_ROLE IS '//IUS_ROLE';

-- ----------------------------
-- Table structure for IUS_ROLE_AUTH
-- ----------------------------
CREATE TABLE IUS_ROLE_AUTH (
ROLE_ID VARCHAR2(20 CHAR) VISIBLE,
AUTH_ID NUMBER(10,0) VISIBLE,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN IUS_ROLE_AUTH.ROLE_ID IS '??ID';

COMMENT ON COLUMN IUS_ROLE_AUTH.AUTH_ID IS '??ID';

COMMENT ON COLUMN IUS_ROLE_AUTH.STATUS IS '??';

COMMENT ON TABLE IUS_ROLE_AUTH IS '?????????';

-- ----------------------------
-- Table structure for IUS_ROLE_MENU
-- ----------------------------
CREATE TABLE IUS_ROLE_MENU (
ROLE_ID VARCHAR2(20 CHAR) VISIBLE,
MENU_ID NUMBER(20,0) VISIBLE,
CHANNEL NUMBER(9,0) VISIBLE DEFAULT 0
);

COMMENT ON TABLE IUS_ROLE_MENU IS '//IUS_ROLE_MENU';

-- ----------------------------
-- Table structure for IUS_TEMPLATE
-- ----------------------------
CREATE TABLE IUS_TEMPLATE (
ID VARCHAR2(20 CHAR) VISIBLE,
NAME VARCHAR2(50 CHAR) VISIBLE,
SITE NUMBER VISIBLE,
REMARK VARCHAR2(500 CHAR) VISIBLE
);

COMMENT ON COLUMN IUS_TEMPLATE.SITE IS '0??????1????001002';

COMMENT ON TABLE IUS_TEMPLATE IS '//IUS_TEMPLATE';

-- ----------------------------
-- Table structure for IUS_TMP_AUTH
-- ----------------------------
CREATE TABLE IUS_TMP_AUTH (
TMP_ID VARCHAR2(20 CHAR) VISIBLE,
AUTH_ID NUMBER VISIBLE
);

COMMENT ON TABLE IUS_TMP_AUTH IS '???????';

-- ----------------------------
-- Table structure for IUS_TMP_MENU
-- ----------------------------
CREATE TABLE IUS_TMP_MENU (
TMP_ID VARCHAR2(20 CHAR) VISIBLE,
MENU_ID NUMBER VISIBLE
);

COMMENT ON TABLE IUS_TMP_MENU IS '???menu??';

-- ----------------------------
-- Table structure for IUS_USER_ROLES
-- ----------------------------
CREATE TABLE IUS_USER_ROLES (
USER_ID VARCHAR2(20 CHAR) VISIBLE,
ROLE_ID VARCHAR2(20 CHAR) VISIBLE,
ROLE_FLAG NUMBER VISIBLE DEFAULT 0
);

COMMENT ON COLUMN IUS_USER_ROLES.USER_ID IS '????';

COMMENT ON COLUMN IUS_USER_ROLES.ROLE_ID IS '????';

COMMENT ON COLUMN IUS_USER_ROLES.ROLE_FLAG IS '??????1????0?????';

COMMENT ON TABLE IUS_USER_ROLES IS '?????';

-- ----------------------------
-- Table structure for IUS_WORKSPACE
-- ----------------------------
CREATE TABLE IUS_WORKSPACE (
ID VARCHAR2(20 CHAR) VISIBLE,
NAME VARCHAR2(50 CHAR) VISIBLE,
SITE NUMBER VISIBLE,
REMARK VARCHAR2(500 CHAR) VISIBLE,
STATUS NUMBER VISIBLE,
TEMP_ID VARCHAR2(20 CHAR) VISIBLE,
SPACE_TYPE NUMBER VISIBLE DEFAULT 1
);

COMMENT ON COLUMN IUS_WORKSPACE.NAME IS '??????';

COMMENT ON COLUMN IUS_WORKSPACE.TEMP_ID IS '????ID';

COMMENT ON COLUMN IUS_WORKSPACE.SPACE_TYPE IS '??????';

COMMENT ON TABLE IUS_WORKSPACE IS '//IUS_WORKSPACE';

-- ----------------------------
-- Table structure for LINK_PURCHASE_MATERIALS
-- ----------------------------
CREATE TABLE LINK_PURCHASE_MATERIALS (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
PURCHASE_ID VARCHAR2(30 BYTE) VISIBLE,
DETAIL_ID VARCHAR2(30 CHAR) VISIBLE,
ORDER_TYPE NUMBER(1,0) VISIBLE,
INVOICE_NUM NUMBER VISIBLE
);

COMMENT ON COLUMN LINK_PURCHASE_MATERIALS.ID IS 'ID';

COMMENT ON COLUMN LINK_PURCHASE_MATERIALS.PURCHASE_ID IS '???????ID';

COMMENT ON COLUMN LINK_PURCHASE_MATERIALS.DETAIL_ID IS '??????ID';

COMMENT ON COLUMN LINK_PURCHASE_MATERIALS.ORDER_TYPE IS '?????0?????1?????';

COMMENT ON COLUMN LINK_PURCHASE_MATERIALS.INVOICE_NUM IS '??????';

COMMENT ON TABLE LINK_PURCHASE_MATERIALS IS '???????????';

-- ----------------------------
-- Table structure for LINK_PURCHASE_VERIFICATION
-- ----------------------------
CREATE TABLE LINK_PURCHASE_VERIFICATION (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
VERIFICATION_ID VARCHAR2(30 BYTE) VISIBLE,
PURCHASE_ID VARCHAR2(30 BYTE) VISIBLE,
PAYMENT_AMOUNT NUMBER(20,2) VISIBLE
);

COMMENT ON COLUMN LINK_PURCHASE_VERIFICATION.ID IS 'ID';

COMMENT ON COLUMN LINK_PURCHASE_VERIFICATION.VERIFICATION_ID IS '?????ID';

COMMENT ON COLUMN LINK_PURCHASE_VERIFICATION.PURCHASE_ID IS '?????ID';

COMMENT ON COLUMN LINK_PURCHASE_VERIFICATION.PAYMENT_AMOUNT IS '????????';

COMMENT ON TABLE LINK_PURCHASE_VERIFICATION IS '//LINK_PURCHASE_VERIFICATION';

-- ----------------------------
-- Table structure for LINK_SALES_INVOICE
-- ----------------------------
CREATE TABLE LINK_SALES_INVOICE (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
INVOICE_APPLY_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
DETAIL_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ORDER_TYPE NUMBER(1,0) VISIBLE,
ORDER_NO VARCHAR2(30 BYTE) VISIBLE,
MATERIAL_NO VARCHAR2(30 BYTE) VISIBLE,
MATERIAL_NAME VARCHAR2(200 BYTE) VISIBLE,
UNIT VARCHAR2(20 BYTE) VISIBLE,
DEALER_PRICE NUMBER(20,2) VISIBLE,
PRICE NUMBER(20,2) VISIBLE,
QTY NUMBER(20,0) VISIBLE,
AFTER_ADJUST_PRICE NUMBER(20,2) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
VERIFY_PRICE NUMBER VISIBLE,
ADJUST_PRICE NUMBER(20,0) VISIBLE,
BEFORE_ADJUST_PRICE NUMBER VISIBLE
);

COMMENT ON COLUMN LINK_SALES_INVOICE.ID IS '主键';

COMMENT ON COLUMN LINK_SALES_INVOICE.INVOICE_APPLY_ID IS '销售开票申请单ID';

COMMENT ON COLUMN LINK_SALES_INVOICE.DETAIL_ID IS '物料ID';

COMMENT ON COLUMN LINK_SALES_INVOICE.ORDER_TYPE IS '????(0-??????1-??????2-?????)';

COMMENT ON COLUMN LINK_SALES_INVOICE.ORDER_NO IS '???';

COMMENT ON COLUMN LINK_SALES_INVOICE.MATERIAL_NO IS '????';

COMMENT ON COLUMN LINK_SALES_INVOICE.MATERIAL_NAME IS '????';

COMMENT ON COLUMN LINK_SALES_INVOICE.UNIT IS '??';

COMMENT ON COLUMN LINK_SALES_INVOICE.DEALER_PRICE IS '????';

COMMENT ON COLUMN LINK_SALES_INVOICE.PRICE IS '??';

COMMENT ON COLUMN LINK_SALES_INVOICE.QTY IS '??';

COMMENT ON COLUMN LINK_SALES_INVOICE.AFTER_ADJUST_PRICE IS '??????';

COMMENT ON COLUMN LINK_SALES_INVOICE.VERIFY_PRICE IS '??????';

COMMENT ON COLUMN LINK_SALES_INVOICE.ADJUST_PRICE IS '?????';

COMMENT ON COLUMN LINK_SALES_INVOICE.BEFORE_ADJUST_PRICE IS '??????';

COMMENT ON TABLE LINK_SALES_INVOICE IS '//LINK_SALES_INVOICE';

-- ----------------------------
-- Table structure for LINK_SALES_MATERIALS
-- ----------------------------
CREATE TABLE LINK_SALES_MATERIALS (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SALE_ID VARCHAR2(30 BYTE) VISIBLE,
DETAIL_ID VARCHAR2(30 CHAR) VISIBLE,
ORDER_TYPE NUMBER(1,0) VISIBLE,
MATERIALS_NO VARCHAR2(20 BYTE) VISIBLE,
GENERAL_NO VARCHAR2(100 BYTE) VISIBLE
);

COMMENT ON COLUMN LINK_SALES_MATERIALS.ID IS 'ID';

COMMENT ON COLUMN LINK_SALES_MATERIALS.SALE_ID IS '???????ID';

COMMENT ON COLUMN LINK_SALES_MATERIALS.DETAIL_ID IS '??????ID';

COMMENT ON COLUMN LINK_SALES_MATERIALS.ORDER_TYPE IS '?????0??????1??????2??????';

COMMENT ON COLUMN LINK_SALES_MATERIALS.MATERIALS_NO IS '????';

COMMENT ON COLUMN LINK_SALES_MATERIALS.GENERAL_NO IS '???????/???????';

COMMENT ON TABLE LINK_SALES_MATERIALS IS '???????????';

-- ----------------------------
-- Table structure for LINK_SALES_VERIFICATION
-- ----------------------------
CREATE TABLE LINK_SALES_VERIFICATION (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
SALES_RETURN_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
VERIFICATION_DATE TIMESTAMP(6) VISIBLE,
VERIFICATION_NAME VARCHAR2(100 BYTE) VISIBLE,
THIS_PRICE NUMBER(16,4) VISIBLE NOT NULL,
REMARK VARCHAR2(100 BYTE) VISIBLE
);

COMMENT ON COLUMN LINK_SALES_VERIFICATION.ID IS '核销编号';

COMMENT ON COLUMN LINK_SALES_VERIFICATION.SALES_RETURN_ID IS '回款单id';

COMMENT ON COLUMN LINK_SALES_VERIFICATION.VERIFICATION_DATE IS '????';

COMMENT ON COLUMN LINK_SALES_VERIFICATION.VERIFICATION_NAME IS '???';

COMMENT ON COLUMN LINK_SALES_VERIFICATION.THIS_PRICE IS '本次核销金额';

COMMENT ON COLUMN LINK_SALES_VERIFICATION.REMARK IS '??';

COMMENT ON TABLE LINK_SALES_VERIFICATION IS '//LINK_SALES_VERIFICATION';

-- ----------------------------
-- Table structure for LINK_VERIFICATION_MATERIELS
-- ----------------------------
CREATE TABLE LINK_VERIFICATION_MATERIELS (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
LINK_VERIFICATION_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ORDERTYPE NUMBER(2,0) VISIBLE NOT NULL,
DETAIL_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
THIS_PRICE NUMBER(16,4) VISIBLE NOT NULL
);

COMMENT ON COLUMN LINK_VERIFICATION_MATERIELS.ID IS '主键';

COMMENT ON COLUMN LINK_VERIFICATION_MATERIELS.LINK_VERIFICATION_ID IS '核销编号';

COMMENT ON COLUMN LINK_VERIFICATION_MATERIELS.ORDERTYPE IS '单据类型:发货通知单0,退货入库单1,三包出库单2,开票申请单3';

COMMENT ON COLUMN LINK_VERIFICATION_MATERIELS.DETAIL_ID IS '物料id';

COMMENT ON COLUMN LINK_VERIFICATION_MATERIELS.THIS_PRICE IS '本次核销金额';

COMMENT ON TABLE LINK_VERIFICATION_MATERIELS IS '//LINK_VERIFICATION_MATERIELS';

-- ----------------------------
-- Table structure for MAINTENANCE_MODEL_RELATION
-- ----------------------------
CREATE TABLE MAINTENANCE_MODEL_RELATION (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MAINTENANCE_ID VARCHAR2(60 CHAR) VISIBLE NOT NULL,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
MODEL_ID VARCHAR2(20 BYTE) VISIBLE,
MODEL_CODE VARCHAR2(30 CHAR) VISIBLE,
MODEL_NAME VARCHAR2(60 CHAR) VISIBLE
);

COMMENT ON COLUMN MAINTENANCE_MODEL_RELATION.ID IS '主键id';

COMMENT ON COLUMN MAINTENANCE_MODEL_RELATION.MAINTENANCE_ID IS '保养包id';

COMMENT ON COLUMN MAINTENANCE_MODEL_RELATION.ORG_ID IS '企业id';

COMMENT ON COLUMN MAINTENANCE_MODEL_RELATION.MODEL_ID IS '机型id';

COMMENT ON COLUMN MAINTENANCE_MODEL_RELATION.MODEL_CODE IS '????';

COMMENT ON COLUMN MAINTENANCE_MODEL_RELATION.MODEL_NAME IS '????';

COMMENT ON TABLE MAINTENANCE_MODEL_RELATION IS '????????';

-- ----------------------------
-- Table structure for MARKET_DEALER_RATING
-- ----------------------------
CREATE TABLE MARKET_DEALER_RATING (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
RATING_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
START_RANKING NUMBER(6,0) VISIBLE,
END_RANKING NUMBER(6,0) VISIBLE,
GRAD VARCHAR2(1 BYTE) VISIBLE,
CREATE_DATE DATE VISIBLE,
UPDATE_DATE DATE VISIBLE,
EFFECTIVE_DATE DATE VISIBLE,
FAILURE_DATE DATE VISIBLE
);

COMMENT ON COLUMN MARKET_DEALER_RATING.ID IS '非业务主键id';

COMMENT ON COLUMN MARKET_DEALER_RATING.RATING_ID IS '评级信息id';

COMMENT ON COLUMN MARKET_DEALER_RATING.ORG_ID IS '企业标识';

COMMENT ON COLUMN MARKET_DEALER_RATING.START_RANKING IS '????';

COMMENT ON COLUMN MARKET_DEALER_RATING.END_RANKING IS '????';

COMMENT ON COLUMN MARKET_DEALER_RATING.GRAD IS '??';

COMMENT ON COLUMN MARKET_DEALER_RATING.CREATE_DATE IS '????';

COMMENT ON COLUMN MARKET_DEALER_RATING.UPDATE_DATE IS '????';

COMMENT ON COLUMN MARKET_DEALER_RATING.EFFECTIVE_DATE IS '????';

COMMENT ON COLUMN MARKET_DEALER_RATING.FAILURE_DATE IS '????';

COMMENT ON TABLE MARKET_DEALER_RATING IS '???????';

-- ----------------------------
-- Table structure for MARKET_DEALER_RATING_DETAIL
-- ----------------------------
CREATE TABLE MARKET_DEALER_RATING_DETAIL (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MAIN_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ACTIVITY_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ACTIVITY_NAME VARCHAR2(100 CHAR) VISIBLE NOT NULL,
DEALER_ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
DEALER_ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
CREATE_DATE DATE VISIBLE,
UPDATE_DATE DATE VISIBLE,
EFFECTIVE_DATE DATE VISIBLE,
FAILURE_DATE DATE VISIBLE
);

COMMENT ON COLUMN MARKET_DEALER_RATING_DETAIL.ID IS '非业务主键id';

COMMENT ON COLUMN MARKET_DEALER_RATING_DETAIL.MAIN_ID IS '主表id';

COMMENT ON COLUMN MARKET_DEALER_RATING_DETAIL.ACTIVITY_ID IS '活动标识';

COMMENT ON COLUMN MARKET_DEALER_RATING_DETAIL.ACTIVITY_NAME IS '活动标识名称';

COMMENT ON COLUMN MARKET_DEALER_RATING_DETAIL.DEALER_ORG_ID IS '客户标识';

COMMENT ON COLUMN MARKET_DEALER_RATING_DETAIL.DEALER_ORG_NAME IS '????';

COMMENT ON COLUMN MARKET_DEALER_RATING_DETAIL.CREATE_DATE IS '????';

COMMENT ON COLUMN MARKET_DEALER_RATING_DETAIL.UPDATE_DATE IS '????';

COMMENT ON COLUMN MARKET_DEALER_RATING_DETAIL.EFFECTIVE_DATE IS '????';

COMMENT ON COLUMN MARKET_DEALER_RATING_DETAIL.FAILURE_DATE IS '????';

COMMENT ON TABLE MARKET_DEALER_RATING_DETAIL IS '?????????';

-- ----------------------------
-- Table structure for MARKETING_ACTIVITY
-- ----------------------------
CREATE TABLE MARKETING_ACTIVITY (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
STATE NUMBER(1,0) VISIBLE NOT NULL,
MODE_TYPE NUMBER(1,0) VISIBLE NOT NULL,
MODE_RATE NUMBER(10,6) VISIBLE,
CREATE_DATE DATE VISIBLE,
IS_BUILT_IN NUMBER(1,0) VISIBLE NOT NULL,
PRICE_GROUP VARCHAR2(60 CHAR) VISIBLE,
IS_SYN_SAP NUMBER(1,0) VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE,
VALID_DATE_START TIMESTAMP(6) VISIBLE,
VALID_DATE_END TIMESTAMP(6) VISIBLE,
IS_ALL_MATERIALS NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
PRICE_TYPE VARCHAR2(4 BYTE) VISIBLE,
ROLE_CONTROL NUMBER(1,0) VISIBLE DEFAULT (0),
ERP_RETURN_FLAG NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN MARKETING_ACTIVITY.ID IS 'id';

COMMENT ON COLUMN MARKETING_ACTIVITY.NAME IS '名称';

COMMENT ON COLUMN MARKETING_ACTIVITY.ORG_ID IS '企业标识';

COMMENT ON COLUMN MARKETING_ACTIVITY.STATE IS '状态(0-未启用，1-启用)';

COMMENT ON COLUMN MARKETING_ACTIVITY.MODE_TYPE IS '类型(0-固定折扣，1-指定价格)';

COMMENT ON COLUMN MARKETING_ACTIVITY.MODE_RATE IS '??';

COMMENT ON COLUMN MARKETING_ACTIVITY.CREATE_DATE IS '????';

COMMENT ON COLUMN MARKETING_ACTIVITY.IS_BUILT_IN IS '是否内置策略，0否1是';

COMMENT ON COLUMN MARKETING_ACTIVITY.PRICE_GROUP IS '???';

COMMENT ON COLUMN MARKETING_ACTIVITY.IS_SYN_SAP IS '???SAP?? 0?1?';

COMMENT ON COLUMN MARKETING_ACTIVITY.UPDATE_DATE IS '????';

COMMENT ON COLUMN MARKETING_ACTIVITY.VALID_DATE_START IS '????';

COMMENT ON COLUMN MARKETING_ACTIVITY.VALID_DATE_END IS '????';

COMMENT ON COLUMN MARKETING_ACTIVITY.PRICE_TYPE IS '???? 0 ??? 1 ???';

COMMENT ON COLUMN MARKETING_ACTIVITY.ROLE_CONTROL IS '?????????1???????0?????????';

COMMENT ON COLUMN MARKETING_ACTIVITY.ERP_RETURN_FLAG IS '????ERP?1????0????';

COMMENT ON TABLE MARKETING_ACTIVITY IS '?????';

-- ----------------------------
-- Table structure for MARKETING_ACTIVITY_ROLE
-- ----------------------------
CREATE TABLE MARKETING_ACTIVITY_ROLE (
ID NUMBER(20,0) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
MARKETING_ACTIVITY_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ROLE_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL
);

COMMENT ON COLUMN MARKETING_ACTIVITY_ROLE.ID IS '主键';

COMMENT ON COLUMN MARKETING_ACTIVITY_ROLE.ORG_ID IS '????';

COMMENT ON COLUMN MARKETING_ACTIVITY_ROLE.MARKETING_ACTIVITY_ID IS '价格方案id';

COMMENT ON COLUMN MARKETING_ACTIVITY_ROLE.ROLE_ID IS '权限id';

COMMENT ON TABLE MARKETING_ACTIVITY_ROLE IS '????????????????????????????????';

-- ----------------------------
-- Table structure for MARKETING_DEALER
-- ----------------------------
CREATE TABLE MARKETING_DEALER (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ACTIVITY_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
DEALER_ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
DEALER_ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
CREATE_DATE DATE VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN MARKETING_DEALER.ID IS 'id';

COMMENT ON COLUMN MARKETING_DEALER.ORG_ID IS '企业标识';

COMMENT ON COLUMN MARKETING_DEALER.ACTIVITY_ID IS '活动标识';

COMMENT ON COLUMN MARKETING_DEALER.DEALER_ORG_ID IS '客户标识';

COMMENT ON COLUMN MARKETING_DEALER.DEALER_ORG_NAME IS '????';

COMMENT ON COLUMN MARKETING_DEALER.CREATE_DATE IS '????';

COMMENT ON COLUMN MARKETING_DEALER.UPDATE_DATE IS '????';

COMMENT ON TABLE MARKETING_DEALER IS '?????';

-- ----------------------------
-- Table structure for MARKETING_GIVE_MATERIALS
-- ----------------------------
CREATE TABLE MARKETING_GIVE_MATERIALS (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ACTIVITY_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(15 BYTE) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(50 BYTE) VISIBLE,
MATERIALS_MODEL VARCHAR2(100 BYTE) VISIBLE,
MATERIALS_NUM NUMBER(9,0) VISIBLE,
MATERIALS_PRICE NUMBER(9,2) VISIBLE,
GIVE_MATERIALS_NO VARCHAR2(15 BYTE) VISIBLE NOT NULL,
GIVE_MATERIALS_DES VARCHAR2(50 BYTE) VISIBLE,
GIVE_MATERIALS_NUM NUMBER(9,0) VISIBLE,
GIVE_MATERIALS_PRICE NUMBER(9,2) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_DATE DATE VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.ID IS '主键ID';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.ACTIVITY_ID IS '活动标识';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.ORG_ID IS '企业编号';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.MATERIALS_DES IS '????';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.MATERIALS_MODEL IS '??';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.MATERIALS_NUM IS '????';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.MATERIALS_PRICE IS '????';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.GIVE_MATERIALS_NO IS '赠送物料编码';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.GIVE_MATERIALS_DES IS '??????';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.GIVE_MATERIALS_NUM IS '??????';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.GIVE_MATERIALS_PRICE IS '??????';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.CREATE_ID IS '???ID';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.UPDATE_ID IS '???ID';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.CREATE_DATE IS '????';

COMMENT ON COLUMN MARKETING_GIVE_MATERIALS.UPDATE_DATE IS '????';

COMMENT ON TABLE MARKETING_GIVE_MATERIALS IS '???????';

-- ----------------------------
-- Table structure for MARKETING_MATERIALS
-- ----------------------------
CREATE TABLE MARKETING_MATERIALS (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ACTIVITY_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(300 BYTE) VISIBLE,
PRICE NUMBER(11,0) VISIBLE,
CREATE_DATE DATE VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE,
VALID_START DATE VISIBLE,
VALID_END DATE VISIBLE
);

COMMENT ON COLUMN MARKETING_MATERIALS.ID IS 'id';

COMMENT ON COLUMN MARKETING_MATERIALS.ACTIVITY_ID IS '活动id';

COMMENT ON COLUMN MARKETING_MATERIALS.ORG_ID IS '企业标识';

COMMENT ON COLUMN MARKETING_MATERIALS.MATERIALS_NO IS '物料编号';

COMMENT ON COLUMN MARKETING_MATERIALS.MATERIALS_DES IS '????';

COMMENT ON COLUMN MARKETING_MATERIALS.PRICE IS '??';

COMMENT ON COLUMN MARKETING_MATERIALS.CREATE_DATE IS '????';

COMMENT ON COLUMN MARKETING_MATERIALS.UPDATE_DATE IS '????';

COMMENT ON TABLE MARKETING_MATERIALS IS '?????';

-- ----------------------------
-- Table structure for MATERIAL_CLASS
-- ----------------------------
CREATE TABLE MATERIAL_CLASS (
ID VARCHAR2(20 BYTE) VISIBLE DEFAULT '' NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MATERIAL_CLASS_NAME VARCHAR2(64 CHAR) VISIBLE,
P_ID VARCHAR2(20 CHAR) VISIBLE NOT NULL,
CLASS_CODE VARCHAR2(20 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
CREATE_DATE DATE VISIBLE NOT NULL,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE NOT NULL,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
CLASS_VALUE VARCHAR2(60 BYTE) VISIBLE
);

COMMENT ON COLUMN MATERIAL_CLASS.ID IS 'id';

COMMENT ON COLUMN MATERIAL_CLASS.MATERIAL_CLASS_NAME IS '??????';

COMMENT ON COLUMN MATERIAL_CLASS.P_ID IS '父类id';

COMMENT ON COLUMN MATERIAL_CLASS.CLASS_CODE IS '????';

COMMENT ON COLUMN MATERIAL_CLASS.IS_DEL IS '删除标识';

COMMENT ON COLUMN MATERIAL_CLASS.CREATE_DATE IS '创建时间';

COMMENT ON COLUMN MATERIAL_CLASS.CREATE_ID IS '???';

COMMENT ON COLUMN MATERIAL_CLASS.UPDATE_DATE IS '修改时间';

COMMENT ON COLUMN MATERIAL_CLASS.UPDATE_ID IS '???';

COMMENT ON COLUMN MATERIAL_CLASS.CLASS_VALUE IS '??????';

COMMENT ON TABLE MATERIAL_CLASS IS '???????';

-- ----------------------------
-- Table structure for MATERIAL_LOCATION_RELATION
-- ----------------------------
CREATE TABLE MATERIAL_LOCATION_RELATION (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIAL_NO VARCHAR2(60 CHAR) VISIBLE NOT NULL,
WAREHOUSE_CODE VARCHAR2(60 CHAR) VISIBLE NOT NULL,
AREA_CODE VARCHAR2(60 CHAR) VISIBLE NOT NULL,
LOCATION_CODE VARCHAR2(60 CHAR) VISIBLE NOT NULL,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(100 CHAR) VISIBLE
);

COMMENT ON COLUMN MATERIAL_LOCATION_RELATION.ID IS '主键id';

COMMENT ON COLUMN MATERIAL_LOCATION_RELATION.MATERIAL_NO IS '物料编码';

COMMENT ON COLUMN MATERIAL_LOCATION_RELATION.WAREHOUSE_CODE IS '仓库编码';

COMMENT ON COLUMN MATERIAL_LOCATION_RELATION.AREA_CODE IS '库区编码';

COMMENT ON COLUMN MATERIAL_LOCATION_RELATION.LOCATION_CODE IS '储位编码';

COMMENT ON TABLE MATERIAL_LOCATION_RELATION IS '//MATERIAL_LOCATION_RELATION';

-- ----------------------------
-- Table structure for MATERIAL_TRANSFER
-- ----------------------------
CREATE TABLE MATERIAL_TRANSFER (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
TRANSFER_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
TYPE NUMBER(1,0) VISIBLE,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
SAP_STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
VOUCHER_NO VARCHAR2(30 CHAR) VISIBLE,
PRE_WAREHOUSE_CODE VARCHAR2(30 CHAR) VISIBLE,
PRE_AREA_CODE VARCHAR2(30 CHAR) VISIBLE,
PRE_SAP_AREA VARCHAR2(30 CHAR) VISIBLE,
PRE_LOCATION_CODE VARCHAR2(30 CHAR) VISIBLE,
NEW_WAREHOUSE_CODE VARCHAR2(30 CHAR) VISIBLE,
NEW_AREA_CODE VARCHAR2(30 CHAR) VISIBLE,
NEW_SAP_AREA VARCHAR2(30 CHAR) VISIBLE,
NEW_LOCATION_CODE VARCHAR2(30 CHAR) VISIBLE,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
DEPT_ID VARCHAR2(30 CHAR) VISIBLE,
DEPT_NAME VARCHAR2(30 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
SAP_ERROR_MSG VARCHAR2(500 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN MATERIAL_TRANSFER.ID IS '主键id';

COMMENT ON COLUMN MATERIAL_TRANSFER.TRANSFER_ORDER IS '转库单据号';

COMMENT ON COLUMN MATERIAL_TRANSFER.TYPE IS '?????0????1????';

COMMENT ON COLUMN MATERIAL_TRANSFER.STATUS IS '?????0???1????2????';

COMMENT ON COLUMN MATERIAL_TRANSFER.SAP_STATUS IS '?SAP?????0???1????2????3????';

COMMENT ON COLUMN MATERIAL_TRANSFER.VOUCHER_NO IS 'SAP????????';

COMMENT ON COLUMN MATERIAL_TRANSFER.PRE_WAREHOUSE_CODE IS '?????';

COMMENT ON COLUMN MATERIAL_TRANSFER.PRE_AREA_CODE IS '?????';

COMMENT ON COLUMN MATERIAL_TRANSFER.PRE_SAP_AREA IS '?SAP????';

COMMENT ON COLUMN MATERIAL_TRANSFER.PRE_LOCATION_CODE IS '?????';

COMMENT ON COLUMN MATERIAL_TRANSFER.NEW_WAREHOUSE_CODE IS '?????';

COMMENT ON COLUMN MATERIAL_TRANSFER.NEW_AREA_CODE IS '?????';

COMMENT ON COLUMN MATERIAL_TRANSFER.NEW_SAP_AREA IS '?SAP????';

COMMENT ON COLUMN MATERIAL_TRANSFER.NEW_LOCATION_CODE IS '?????';

COMMENT ON COLUMN MATERIAL_TRANSFER.ORG_ID IS '??orgid';

COMMENT ON COLUMN MATERIAL_TRANSFER.DEPT_ID IS '??id';

COMMENT ON COLUMN MATERIAL_TRANSFER.DEPT_NAME IS '????';

COMMENT ON COLUMN MATERIAL_TRANSFER.CREATE_ID IS '???id';

COMMENT ON COLUMN MATERIAL_TRANSFER.CREATE_NAME IS '?????';

COMMENT ON COLUMN MATERIAL_TRANSFER.CREATE_DATE IS '????';

COMMENT ON COLUMN MATERIAL_TRANSFER.SAP_ERROR_MSG IS 'SAP???????';

COMMENT ON COLUMN MATERIAL_TRANSFER.IS_DEL IS '????';

COMMENT ON TABLE MATERIAL_TRANSFER IS '?????';

-- ----------------------------
-- Table structure for MATERIAL_TRANSFER_DETAIL
-- ----------------------------
CREATE TABLE MATERIAL_TRANSFER_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
TRANSFER_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
BARCODE VARCHAR2(30 CHAR) VISIBLE,
MATERIAL_NO VARCHAR2(30 CHAR) VISIBLE,
MATERIAL_NAME VARCHAR2(255 CHAR) VISIBLE,
MATERIAL_TYPE VARCHAR2(100 CHAR) VISIBLE,
UNIT VARCHAR2(100 CHAR) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(255 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN MATERIAL_TRANSFER_DETAIL.ID IS '主键id';

COMMENT ON COLUMN MATERIAL_TRANSFER_DETAIL.TRANSFER_ORDER IS '转库单据号';

COMMENT ON COLUMN MATERIAL_TRANSFER_DETAIL.BARCODE IS '????';

COMMENT ON COLUMN MATERIAL_TRANSFER_DETAIL.MATERIAL_NO IS '????';

COMMENT ON COLUMN MATERIAL_TRANSFER_DETAIL.MATERIAL_NAME IS '????';

COMMENT ON COLUMN MATERIAL_TRANSFER_DETAIL.MATERIAL_TYPE IS '????';

COMMENT ON COLUMN MATERIAL_TRANSFER_DETAIL.UNIT IS '??';

COMMENT ON COLUMN MATERIAL_TRANSFER_DETAIL.AMOUNT IS '??';

COMMENT ON COLUMN MATERIAL_TRANSFER_DETAIL.ORG_ID IS '??orgid';

COMMENT ON COLUMN MATERIAL_TRANSFER_DETAIL.CREATE_ID IS '???id';

COMMENT ON COLUMN MATERIAL_TRANSFER_DETAIL.CREATE_NAME IS '?????';

COMMENT ON COLUMN MATERIAL_TRANSFER_DETAIL.CREATE_DATE IS '????';

COMMENT ON TABLE MATERIAL_TRANSFER_DETAIL IS '??????';

-- ----------------------------
-- Table structure for MATERIAL_WAREHOUSE_USER
-- ----------------------------
CREATE TABLE MATERIAL_WAREHOUSE_USER (
ID VARCHAR2(20 BYTE) VISIBLE,
MATERIALS_NO VARCHAR2(20 BYTE) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
WAREHOUSE_CODE VARCHAR2(20 BYTE) VISIBLE,
WAREHOUSE_ID VARCHAR2(20 BYTE) VISIBLE,
USER_ID VARCHAR2(20 BYTE) VISIBLE,
USER_NAME VARCHAR2(20 CHAR) VISIBLE,
AREA_ID VARCHAR2(30 BYTE) VISIBLE,
AREA_CODE VARCHAR2(30 BYTE) VISIBLE,
LOCATION_CODE VARCHAR2(30 BYTE) VISIBLE
);

COMMENT ON COLUMN MATERIAL_WAREHOUSE_USER.MATERIALS_NO IS '???';

COMMENT ON COLUMN MATERIAL_WAREHOUSE_USER.ORG_ID IS '????';

COMMENT ON COLUMN MATERIAL_WAREHOUSE_USER.WAREHOUSE_CODE IS '????';

COMMENT ON COLUMN MATERIAL_WAREHOUSE_USER.WAREHOUSE_ID IS '????';

COMMENT ON COLUMN MATERIAL_WAREHOUSE_USER.USER_ID IS '??id';

COMMENT ON COLUMN MATERIAL_WAREHOUSE_USER.USER_NAME IS '?????';

COMMENT ON COLUMN MATERIAL_WAREHOUSE_USER.AREA_ID IS '??id';

COMMENT ON COLUMN MATERIAL_WAREHOUSE_USER.AREA_CODE IS '????';

COMMENT ON COLUMN MATERIAL_WAREHOUSE_USER.LOCATION_CODE IS '????';

COMMENT ON TABLE MATERIAL_WAREHOUSE_USER IS '????';

-- ----------------------------
-- Table structure for MATERIALS
-- ----------------------------
CREATE TABLE MATERIALS (
MATERIALID VARCHAR2(100 BYTE) VISIBLE,
MATERIALCODE VARCHAR2(100 BYTE) VISIBLE,
MATERIALNAME VARCHAR2(1000 BYTE) VISIBLE,
UNITNAME VARCHAR2(100 BYTE) VISIBLE,
MATERIALSPECS VARCHAR2(600 BYTE) VISIBLE,
MATERIALTYPE VARCHAR2(100 BYTE) VISIBLE,
LASTCHGTIME DATE VISIBLE,
ISSTOP VARCHAR2(36 BYTE) VISIBLE,
ISREAD VARCHAR2(36 BYTE) VISIBLE,
WMSRECEIVETIME DATE VISIBLE,
ERPIMPORTTIME DATE VISIBLE,
MATERIALTYPECODE VARCHAR2(100 BYTE) VISIBLE
);

COMMENT ON TABLE MATERIALS IS '//MATERIALS';

-- ----------------------------
-- Table structure for MATERIALS_DEAL_TEMP
-- ----------------------------
CREATE TABLE MATERIALS_DEAL_TEMP (
MATERIALS_NO VARCHAR2(30 BYTE) VISIBLE,
PRICE NUMBER(9,2) VISIBLE
);

COMMENT ON TABLE MATERIALS_DEAL_TEMP IS '//MATERIALS_DEAL_TEMP';

-- ----------------------------
-- Table structure for MATERIALS_GUIDE_PRICE
-- ----------------------------
CREATE TABLE MATERIALS_GUIDE_PRICE (
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
MATERIALS_NO VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(200 BYTE) VISIBLE,
PRICE NUMBER(9,0) VISIBLE NOT NULL,
UNIT VARCHAR2(10 BYTE) VISIBLE,
MACHINE_TYPE VARCHAR2(100 BYTE) VISIBLE
);

COMMENT ON COLUMN MATERIALS_GUIDE_PRICE.ORG_ID IS '??????ID';

COMMENT ON COLUMN MATERIALS_GUIDE_PRICE.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN MATERIALS_GUIDE_PRICE.MATERIALS_DES IS '????';

COMMENT ON COLUMN MATERIALS_GUIDE_PRICE.PRICE IS '全国统一价';

COMMENT ON COLUMN MATERIALS_GUIDE_PRICE.UNIT IS '??';

COMMENT ON COLUMN MATERIALS_GUIDE_PRICE.MACHINE_TYPE IS '????';

COMMENT ON TABLE MATERIALS_GUIDE_PRICE IS '????????';

-- ----------------------------
-- Table structure for MATERIALS_PURCHASE_INFO
-- ----------------------------
CREATE TABLE MATERIALS_PURCHASE_INFO (
MATERIALS_NO VARCHAR2(20 BYTE) VISIBLE,
MATERIALS_DES VARCHAR2(500 BYTE) VISIBLE,
SUPPLIER_SAP_CODE VARCHAR2(20 BYTE) VISIBLE,
SUPPLIER_NAME VARCHAR2(200 BYTE) VISIBLE,
PRICE NUMBER(9,0) VISIBLE,
PRICE_UNIT VARCHAR2(20 BYTE) VISIBLE,
BASE_UNIT VARCHAR2(20 BYTE) VISIBLE,
START_TIME DATE VISIBLE,
END_TIME DATE VISIBLE,
RECORDING_NO VARCHAR2(50 BYTE) VISIBLE,
IDENTIFICATION VARCHAR2(50 BYTE) VISIBLE,
PURCHASE_SAP_CODE VARCHAR2(20 BYTE) VISIBLE,
FACTORY_SAP_CODE VARCHAR2(20 BYTE) VISIBLE,
RECORDING_CATEGORY VARCHAR2(50 BYTE) VISIBLE,
DELIVERY_SPEND NUMBER(5,2) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_TIME DATE VISIBLE
);

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.MATERIALS_NO IS '????';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.MATERIALS_DES IS '????';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.SUPPLIER_SAP_CODE IS '???sapCode';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.SUPPLIER_NAME IS '?????';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.PRICE IS '????????????';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.PRICE_UNIT IS '??????';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.BASE_UNIT IS '??????';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.START_TIME IS '?????????';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.END_TIME IS '??????????';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.RECORDING_NO IS '?????';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.IDENTIFICATION IS '????';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.PURCHASE_SAP_CODE IS '???sapCode????factory_Sap_Code';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.FACTORY_SAP_CODE IS '???sapCode';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.RECORDING_CATEGORY IS '????????';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.DELIVERY_SPEND IS '???????????';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.ORG_ID IS '?????ID?????';

COMMENT ON COLUMN MATERIALS_PURCHASE_INFO.UPDATE_TIME IS '????';

COMMENT ON TABLE MATERIALS_PURCHASE_INFO IS '????????';

-- ----------------------------
-- Table structure for MATERIALS_SAFETY_STOCK
-- ----------------------------
CREATE TABLE MATERIALS_SAFETY_STOCK (
MATERIALS_NO VARCHAR2(15 BYTE) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(500 BYTE) VISIBLE,
SALES_RATE NUMBER(9,0) VISIBLE,
SAFETY_CONS NUMBER(9,2) VISIBLE,
SAFETY_LEVEL VARCHAR2(4 BYTE) VISIBLE,
CAL_SAFETY_STOCK NUMBER(12,2) VISIBLE,
ADJUST_SAFETY_STOCK NUMBER(12,2) VISIBLE,
LTD_STOCK NUMBER(12,2) VISIBLE,
EOQ_STOCK NUMBER(12,2) VISIBLE,
UPPER_LIMIT_STOCK NUMBER(12,2) VISIBLE,
ROP_STOCK NUMBER(12,2) VISIBLE,
DELIVERY_SPEND NUMBER(9,2) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
CREATE_NAME VARCHAR2(50 BYTE) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
UPDATE_ID VARCHAR2(50 BYTE) VISIBLE NOT NULL,
UPDATE_NAME VARCHAR2(50 BYTE) VISIBLE NOT NULL,
UPDATE_TIME DATE VISIBLE NOT NULL,
REMARK VARCHAR2(500 BYTE) VISIBLE
);

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.MATERIALS_DES IS '????';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.SALES_RATE IS '????';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.SAFETY_CONS IS '????, ????????';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.SAFETY_LEVEL IS '????????????';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.CAL_SAFETY_STOCK IS '???????????????';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.ADJUST_SAFETY_STOCK IS '???????';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.LTD_STOCK IS '??????';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.EOQ_STOCK IS '????';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.UPPER_LIMIT_STOCK IS '????';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.ROP_STOCK IS '?????';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.DELIVERY_SPEND IS '?????????????????????';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.ORG_ID IS '公司ID';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.CREATE_ID IS '添加人ID';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.CREATE_NAME IS '添加人名称';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.CREATE_TIME IS '添加时间';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.UPDATE_ID IS '修改人ID';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.UPDATE_NAME IS '修改人名称';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.UPDATE_TIME IS '修改时间';

COMMENT ON COLUMN MATERIALS_SAFETY_STOCK.REMARK IS '??';

COMMENT ON TABLE MATERIALS_SAFETY_STOCK IS '???????';

-- ----------------------------
-- Table structure for MATERIALS_SALES_DATA
-- ----------------------------
CREATE TABLE MATERIALS_SALES_DATA (
MATERIALS_NO VARCHAR2(20 BYTE) VISIBLE NOT NULL,
LAST_MONTH NUMBER(9,2) VISIBLE DEFAULT 0  NOT NULL,
LAST_MONTH2 NUMBER(9,2) VISIBLE DEFAULT 0  NOT NULL,
LAST_MONTH3 NUMBER(9,2) VISIBLE DEFAULT 0  NOT NULL,
LAST_MONTH4 NUMBER(9,2) VISIBLE DEFAULT 0  NOT NULL,
LAST_MONTH5 NUMBER(9,2) VISIBLE DEFAULT 0  NOT NULL,
LAST_MONTH6 NUMBER(9,2) VISIBLE DEFAULT 0  NOT NULL,
LAST_MONTH7 NUMBER(9,2) VISIBLE DEFAULT 0  NOT NULL,
LAST_MONTH8 NUMBER(9,2) VISIBLE DEFAULT 0  NOT NULL,
LAST_MONTH9 NUMBER(9,2) VISIBLE DEFAULT 0  NOT NULL,
LAST_MONTH10 NUMBER(9,2) VISIBLE DEFAULT 0  NOT NULL,
LAST_MONTH11 NUMBER(9,2) VISIBLE DEFAULT 0  NOT NULL,
LAST_MONTH12 NUMBER(9,2) VISIBLE DEFAULT 0  NOT NULL,
LAST_MONTH13 NUMBER(9,2) VISIBLE DEFAULT 0  NOT NULL,
SALES_VARIANCE NUMBER(16,4) VISIBLE,
SAFETY_FLAG NUMBER(1,0) VISIBLE DEFAULT 1,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
UPDATE_TIME DATE VISIBLE NOT NULL
);

COMMENT ON COLUMN MATERIALS_SALES_DATA.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN MATERIALS_SALES_DATA.LAST_MONTH IS '上个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA.LAST_MONTH2 IS '前第2个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA.LAST_MONTH3 IS '前第3个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA.LAST_MONTH4 IS '前第4个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA.LAST_MONTH5 IS '前第5个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA.LAST_MONTH6 IS '前第6个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA.LAST_MONTH7 IS '前第7个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA.LAST_MONTH8 IS '前第8个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA.LAST_MONTH9 IS '前第9个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA.LAST_MONTH10 IS '前第10个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA.LAST_MONTH11 IS '前第11个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA.LAST_MONTH12 IS '前第12个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA.LAST_MONTH13 IS '前第13个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA.SALES_VARIANCE IS '?13??????????????????????????????????';

COMMENT ON COLUMN MATERIALS_SALES_DATA.SAFETY_FLAG IS '????????0??1?';

COMMENT ON COLUMN MATERIALS_SALES_DATA.ORG_ID IS '公司ID';

COMMENT ON COLUMN MATERIALS_SALES_DATA.UPDATE_TIME IS '更新时间';

COMMENT ON TABLE MATERIALS_SALES_DATA IS '?????????';

-- ----------------------------
-- Table structure for MATERIALS_SALES_DATA_THREE
-- ----------------------------
CREATE TABLE MATERIALS_SALES_DATA_THREE (
MATERIALS_NO VARCHAR2(20 BYTE) VISIBLE NOT NULL,
LAST_MONTH NUMBER(9,2) VISIBLE DEFAULT 0   NOT NULL,
LAST_MONTH2 NUMBER(9,2) VISIBLE DEFAULT 0   NOT NULL,
LAST_MONTH3 NUMBER(9,2) VISIBLE DEFAULT 0   NOT NULL,
LAST_MONTH4 NUMBER(9,2) VISIBLE DEFAULT 0   NOT NULL,
LAST_MONTH5 NUMBER(9,2) VISIBLE DEFAULT 0   NOT NULL,
LAST_MONTH6 NUMBER(9,2) VISIBLE DEFAULT 0   NOT NULL,
LAST_MONTH7 NUMBER(9,2) VISIBLE DEFAULT 0   NOT NULL,
LAST_MONTH8 NUMBER(9,2) VISIBLE DEFAULT 0   NOT NULL,
LAST_MONTH9 NUMBER(9,2) VISIBLE DEFAULT 0   NOT NULL,
LAST_MONTH10 NUMBER(9,2) VISIBLE DEFAULT 0   NOT NULL,
LAST_MONTH11 NUMBER(9,2) VISIBLE DEFAULT 0   NOT NULL,
LAST_MONTH12 NUMBER(9,2) VISIBLE DEFAULT 0   NOT NULL,
LAST_MONTH13 NUMBER(9,2) VISIBLE DEFAULT 0   NOT NULL,
SALES_VARIANCE NUMBER(16,4) VISIBLE,
SAFETY_FLAG NUMBER(1,0) VISIBLE DEFAULT 1 ,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
UPDATE_TIME DATE VISIBLE NOT NULL
);

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.LAST_MONTH IS '上个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.LAST_MONTH2 IS '前第2个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.LAST_MONTH3 IS '前第3个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.LAST_MONTH4 IS '前第4个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.LAST_MONTH5 IS '前第5个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.LAST_MONTH6 IS '前第6个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.LAST_MONTH7 IS '前第7个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.LAST_MONTH8 IS '前第8个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.LAST_MONTH9 IS '前第9个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.LAST_MONTH10 IS '前第10个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.LAST_MONTH11 IS '前第11个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.LAST_MONTH12 IS '前第12个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.LAST_MONTH13 IS '前第13个月出货量';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.SALES_VARIANCE IS '?13??????????????????????????????????';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.SAFETY_FLAG IS '????????0??1?';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.ORG_ID IS '公司ID';

COMMENT ON COLUMN MATERIALS_SALES_DATA_THREE.UPDATE_TIME IS '更新时间';

COMMENT ON TABLE MATERIALS_SALES_DATA_THREE IS '???????????';

-- ----------------------------
-- Table structure for MATERIALS_SCHEDULE
-- ----------------------------
CREATE TABLE MATERIALS_SCHEDULE (
ID VARCHAR2(30 BYTE) VISIBLE,
REQUISITION_NO VARCHAR2(30 BYTE) VISIBLE,
DOCUMENT_ID VARCHAR2(30 BYTE) VISIBLE,
DOCUMENT_NAME VARCHAR2(30 BYTE) VISIBLE,
CREATE_PART_ID VARCHAR2(30 BYTE) VISIBLE,
CREATE_PART_NAME VARCHAR2(30 BYTE) VISIBLE,
CREATE_ID VARCHAR2(30 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(30 BYTE) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
NOTE VARCHAR2(500 BYTE) VISIBLE,
OUT_LOCATION VARCHAR2(30 BYTE) VISIBLE,
IN_LOCATION VARCHAR2(30 BYTE) VISIBLE,
SAP_TYPE VARCHAR2(30 BYTE) VISIBLE,
SAP_STATUS NUMBER(1,0) VISIBLE,
SAP_IN_CODE VARCHAR2(30 BYTE) VISIBLE,
SAP_OUT_CODE VARCHAR2(30 BYTE) VISIBLE,
AUDIT_STATUS NUMBER(1,0) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE DEFAULT '' NOT NULL,
STATUS NUMBER(1,0) VISIBLE,
TYPE NUMBER(1,0) VISIBLE,
VOUCHER_IN_NO VARCHAR2(60 BYTE) VISIBLE,
VOUCHER_OUT_NO VARCHAR2(60 BYTE) VISIBLE,
SAP_ERROR_MSG VARCHAR2(500 CHAR) VISIBLE,
SAP_IN_AREA VARCHAR2(60 BYTE) VISIBLE,
SAP_OUT_AREA VARCHAR2(60 BYTE) VISIBLE,
IN_AREA VARCHAR2(60 BYTE) VISIBLE,
OUT_AREA VARCHAR2(60 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
RECEIPT_USER VARCHAR2(30 CHAR) VISIBLE,
RECEIPT_DATE TIMESTAMP(6) VISIBLE,
IS_RECEIPT NUMBER(1,0) VISIBLE DEFAULT 0,
POST_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
CRM_ORDER VARCHAR2(20 BYTE) VISIBLE,
AUDIT_OPINION VARCHAR2(3000 BYTE) VISIBLE,
PMS_CODE VARCHAR2(50 BYTE) VISIBLE,
SYNC_CRM_FLAG VARCHAR2(4 BYTE) VISIBLE,
SYNC_CRM_MSG VARCHAR2(2000 BYTE) VISIBLE,
POST_IN_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
POST_OUT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0
,
AUDIT_USER_ID VARCHAR2(50 BYTE) VISIBLE,
AUDIT_USER_NAME VARCHAR2(100 BYTE) VISIBLE,
AUDIT_DATE TIMESTAMP(7) VISIBLE
);

COMMENT ON COLUMN MATERIALS_SCHEDULE.ID IS 'ID';

COMMENT ON COLUMN MATERIALS_SCHEDULE.REQUISITION_NO IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.DOCUMENT_ID IS '????ID';

COMMENT ON COLUMN MATERIALS_SCHEDULE.DOCUMENT_NAME IS '??????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.CREATE_PART_ID IS '????ID';

COMMENT ON COLUMN MATERIALS_SCHEDULE.CREATE_PART_NAME IS '??????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.CREATE_ID IS '???ID';

COMMENT ON COLUMN MATERIALS_SCHEDULE.CREATE_NAME IS '?????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.CREATE_DATE IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.NOTE IS '??';

COMMENT ON COLUMN MATERIALS_SCHEDULE.OUT_LOCATION IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.IN_LOCATION IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.SAP_TYPE IS 'SAP??';

COMMENT ON COLUMN MATERIALS_SCHEDULE.SAP_STATUS IS 'SAP??,0:???,1:???';

COMMENT ON COLUMN MATERIALS_SCHEDULE.SAP_IN_CODE IS 'SAP??????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.SAP_OUT_CODE IS 'SAP??????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.AUDIT_STATUS IS '????,0:???,1:???,-1:????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.STATUS IS '????,0:???,1:???,2:???,3:????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.TYPE IS '??????0:?????,1:?????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.VOUCHER_IN_NO IS '?????????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.VOUCHER_OUT_NO IS '?????????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.SAP_ERROR_MSG IS '????????????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.SAP_IN_AREA IS 'sap????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.SAP_OUT_AREA IS 'sap????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.IN_AREA IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.OUT_AREA IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.IS_DEL IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.RECEIPT_USER IS '?????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.RECEIPT_DATE IS '??????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.IS_RECEIPT IS '???? 0?1?';

COMMENT ON COLUMN MATERIALS_SCHEDULE.POST_STATUS IS '???? 0???1????2???';

COMMENT ON COLUMN MATERIALS_SCHEDULE.CRM_ORDER IS 'crm???';

COMMENT ON COLUMN MATERIALS_SCHEDULE.AUDIT_OPINION IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.PMS_CODE IS 'PMS???';

COMMENT ON COLUMN MATERIALS_SCHEDULE.SYNC_CRM_FLAG IS '??crm??';

COMMENT ON COLUMN MATERIALS_SCHEDULE.SYNC_CRM_MSG IS '??crm??';

COMMENT ON COLUMN MATERIALS_SCHEDULE.POST_IN_STATUS IS '??????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.POST_OUT_STATUS IS '??????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.AUDIT_USER_ID IS '???id';

COMMENT ON COLUMN MATERIALS_SCHEDULE.AUDIT_USER_NAME IS '?????';

COMMENT ON COLUMN MATERIALS_SCHEDULE.AUDIT_DATE IS '????';

COMMENT ON TABLE MATERIALS_SCHEDULE IS '//MATERIALS_SCHEDULE';

-- ----------------------------
-- Table structure for MATERIALS_SCHEDULE_DETAIL
-- ----------------------------
CREATE TABLE MATERIALS_SCHEDULE_DETAIL (
ID VARCHAR2(30 BYTE) VISIBLE,
MATERIALS_SCHEDULE_ID VARCHAR2(30 BYTE) VISIBLE,
MATERIALS_NO VARCHAR2(30 BYTE) VISIBLE,
MATERIALS_DES VARCHAR2(500 BYTE) VISIBLE,
MATERIALS_TYPE VARCHAR2(30 BYTE) VISIBLE,
UNIT VARCHAR2(30 BYTE) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE,
REAL_AMOUNT NUMBER(14,3) VISIBLE,
CREATE_ID VARCHAR2(30 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(30 BYTE) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
OUT_LOCATION VARCHAR2(30 BYTE) VISIBLE,
IN_LOCATION VARCHAR2(30 BYTE) VISIBLE,
NOTE VARCHAR2(200 BYTE) VISIBLE,
STATUS NUMBER(1,0) VISIBLE,
POST_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0,
VOUCHER_NO VARCHAR2(30 CHAR) VISIBLE,
VOUCHER_IN_NO VARCHAR2(60 BYTE) VISIBLE,
VOUCHER_OUT_NO VARCHAR2(60 BYTE) VISIBLE,
POST_IN_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
POST_OUT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0
,
DELIVERY_NO VARCHAR2(30 BYTE) VISIBLE
);

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.ID IS 'ID';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.MATERIALS_SCHEDULE_ID IS '??ID';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.MATERIALS_NO IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.MATERIALS_DES IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.UNIT IS '??';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.AMOUNT IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.REAL_AMOUNT IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.CREATE_ID IS '???ID';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.CREATE_NAME IS '?????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.CREATE_DATE IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.OUT_LOCATION IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.IN_LOCATION IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.NOTE IS '??';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.STATUS IS '????,0:???,1:???,2:???';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.POST_AMOUNT IS '?????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.VOUCHER_NO IS '????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.VOUCHER_IN_NO IS '??????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.VOUCHER_OUT_NO IS '??????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.POST_IN_STATUS IS '??????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.POST_OUT_STATUS IS '??????';

COMMENT ON COLUMN MATERIALS_SCHEDULE_DETAIL.DELIVERY_NO IS '??????';

COMMENT ON TABLE MATERIALS_SCHEDULE_DETAIL IS '//MATERIALS_SCHEDULE_DETAIL';

-- ----------------------------
-- Table structure for MATERIALS_SUPPLIER
-- ----------------------------
CREATE TABLE MATERIALS_SUPPLIER (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MATERIALS_ID VARCHAR2(20 BYTE) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(15 BYTE) VISIBLE NOT NULL,
SUPPLIER_ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
SUPPLIER_CODE VARCHAR2(20 BYTE) VISIBLE,
SUPPLIER_COM_NAME VARCHAR2(200 BYTE) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(100 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE,
SALES_CODE VARCHAR2(5 BYTE) VISIBLE
);

COMMENT ON COLUMN MATERIALS_SUPPLIER.ID IS '主键';

COMMENT ON COLUMN MATERIALS_SUPPLIER.MATERIALS_ID IS '??basic_pri_materials.materials_id';

COMMENT ON COLUMN MATERIALS_SUPPLIER.ORG_ID IS '物料所属公司id，对应basic_pri_materials.org_id';

COMMENT ON COLUMN MATERIALS_SUPPLIER.MATERIALS_NO IS '物料编码，对应basic_pri_materials.materials_no';

COMMENT ON COLUMN MATERIALS_SUPPLIER.SUPPLIER_ORG_ID IS '供应商自定义编号, 对应company_supplier.supplier_code';

COMMENT ON COLUMN MATERIALS_SUPPLIER.SUPPLIER_COM_NAME IS '???????';

COMMENT ON COLUMN MATERIALS_SUPPLIER.CREATE_ID IS '???id';

COMMENT ON COLUMN MATERIALS_SUPPLIER.CREATE_NAME IS '?????';

COMMENT ON COLUMN MATERIALS_SUPPLIER.CREATE_TIME IS '????';

COMMENT ON COLUMN MATERIALS_SUPPLIER.SALES_CODE IS '??????';

COMMENT ON TABLE MATERIALS_SUPPLIER IS '????????';

-- ----------------------------
-- Table structure for MODEL_MATERIAL_RELATION
-- ----------------------------
CREATE TABLE MODEL_MATERIAL_RELATION (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MAINTENANCE_MODEL_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(60 CHAR) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(100 CHAR) VISIBLE NOT NULL,
ORG_ID VARCHAR2(30 CHAR) VISIBLE
);

COMMENT ON COLUMN MODEL_MATERIAL_RELATION.ID IS '主键id';

COMMENT ON COLUMN MODEL_MATERIAL_RELATION.MAINTENANCE_MODEL_ID IS '机型id';

COMMENT ON COLUMN MODEL_MATERIAL_RELATION.MATERIALS_NO IS '物料编号';

COMMENT ON COLUMN MODEL_MATERIAL_RELATION.MATERIALS_DES IS '物料描述';

COMMENT ON COLUMN MODEL_MATERIAL_RELATION.ORG_ID IS '企业id';

COMMENT ON TABLE MODEL_MATERIAL_RELATION IS '??????';

-- ----------------------------
-- Table structure for MONTH_PLAN_ACCURACY_DETAIL
-- ----------------------------
CREATE TABLE MONTH_PLAN_ACCURACY_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SCORE_INFO_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
MONTH_ORDER NUMBER(13,0) VISIBLE DEFAULT 0,
URGENT_ORDER NUMBER(13,0) VISIBLE DEFAULT 0,
ACCURACY_RATE VARCHAR2(30 BYTE) VISIBLE,
SCORE NUMBER(6,0) VISIBLE DEFAULT 0,
CREATOR_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 CHAR) VISIBLE,
MODIFIER_NAME VARCHAR2(50 CHAR) VISIBLE,
MODIFY_TIME DATE VISIBLE
);

COMMENT ON COLUMN MONTH_PLAN_ACCURACY_DETAIL.ID IS '非业务主键id';

COMMENT ON COLUMN MONTH_PLAN_ACCURACY_DETAIL.SCORE_INFO_ID IS '评分信息id';

COMMENT ON COLUMN MONTH_PLAN_ACCURACY_DETAIL.MONTH_ORDER IS '????';

COMMENT ON COLUMN MONTH_PLAN_ACCURACY_DETAIL.URGENT_ORDER IS '????';

COMMENT ON COLUMN MONTH_PLAN_ACCURACY_DETAIL.ACCURACY_RATE IS '???';

COMMENT ON COLUMN MONTH_PLAN_ACCURACY_DETAIL.SCORE IS '??';

COMMENT ON COLUMN MONTH_PLAN_ACCURACY_DETAIL.CREATOR_ID IS '创建人id';

COMMENT ON COLUMN MONTH_PLAN_ACCURACY_DETAIL.CREATOR_NAME IS '创建人姓名';

COMMENT ON COLUMN MONTH_PLAN_ACCURACY_DETAIL.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN MONTH_PLAN_ACCURACY_DETAIL.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN MONTH_PLAN_ACCURACY_DETAIL.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN MONTH_PLAN_ACCURACY_DETAIL.MODIFY_TIME IS '????';

COMMENT ON TABLE MONTH_PLAN_ACCURACY_DETAIL IS '?????????';

-- ----------------------------
-- Table structure for OAUTH_CLIENT_DETAILS
-- ----------------------------
CREATE TABLE OAUTH_CLIENT_DETAILS (
CLIENT_ID VARCHAR2(128 BYTE) VISIBLE NOT NULL,
RESOURCE_IDS VARCHAR2(256 BYTE) VISIBLE DEFAULT NULL,
CLIENT_SECRET VARCHAR2(256 BYTE) VISIBLE DEFAULT NULL,
SCOPE VARCHAR2(256 BYTE) VISIBLE DEFAULT NULL,
AUTHORIZED_GRANT_TYPES VARCHAR2(256 BYTE) VISIBLE DEFAULT NULL,
WEB_SERVER_REDIRECT_URI VARCHAR2(256 BYTE) VISIBLE DEFAULT NULL,
AUTHORITIES VARCHAR2(256 BYTE) VISIBLE DEFAULT NULL,
ACCESS_TOKEN_VALIDITY NUMBER VISIBLE DEFAULT NULL,
REFRESH_TOKEN_VALIDITY NUMBER VISIBLE DEFAULT NULL,
ADDITIONAL_INFORMATION VARCHAR2(2048 BYTE) VISIBLE DEFAULT NULL,
AUTOAPPROVE VARCHAR2(256 BYTE) VISIBLE DEFAULT NULL
);

COMMENT ON TABLE OAUTH_CLIENT_DETAILS IS '//OAUTH_CLIENT_DETAILS';

-- ----------------------------
-- Table structure for ORDER_MARKETING_ACTIVITY
-- ----------------------------
CREATE TABLE ORDER_MARKETING_ACTIVITY (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
STATE NUMBER(1,0) VISIBLE NOT NULL,
MODE_TYPE NUMBER(1,0) VISIBLE NOT NULL,
MODE_RATE NUMBER(10,6) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_DATE DATE VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE,
VALID_DATE_START TIMESTAMP(6) VISIBLE,
VALID_DATE_END TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN ORDER_MARKETING_ACTIVITY.ID IS '主键ID';

COMMENT ON COLUMN ORDER_MARKETING_ACTIVITY.NAME IS '名称';

COMMENT ON COLUMN ORDER_MARKETING_ACTIVITY.ORG_ID IS '企业编号';

COMMENT ON COLUMN ORDER_MARKETING_ACTIVITY.STATE IS '状态(0-未启用，1-启用)';

COMMENT ON COLUMN ORDER_MARKETING_ACTIVITY.MODE_TYPE IS '类型(0-固定折扣)';

COMMENT ON COLUMN ORDER_MARKETING_ACTIVITY.MODE_RATE IS '??';

COMMENT ON COLUMN ORDER_MARKETING_ACTIVITY.CREATE_ID IS '???ID';

COMMENT ON COLUMN ORDER_MARKETING_ACTIVITY.UPDATE_ID IS '???ID';

COMMENT ON COLUMN ORDER_MARKETING_ACTIVITY.CREATE_DATE IS '????';

COMMENT ON COLUMN ORDER_MARKETING_ACTIVITY.UPDATE_DATE IS '????';

COMMENT ON COLUMN ORDER_MARKETING_ACTIVITY.VALID_DATE_START IS '????';

COMMENT ON COLUMN ORDER_MARKETING_ACTIVITY.VALID_DATE_END IS '????';

COMMENT ON TABLE ORDER_MARKETING_ACTIVITY IS '???????';

-- ----------------------------
-- Table structure for ORDER_MARKETING_DEALER
-- ----------------------------
CREATE TABLE ORDER_MARKETING_DEALER (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ACTIVITY_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
DEALER_ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
DEALER_ORG_NAME VARCHAR2(200 BYTE) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_DATE DATE VISIBLE,
UPDATE_DATE TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN ORDER_MARKETING_DEALER.ID IS '主键ID';

COMMENT ON COLUMN ORDER_MARKETING_DEALER.ORG_ID IS '企业编号';

COMMENT ON COLUMN ORDER_MARKETING_DEALER.ACTIVITY_ID IS '活动标识';

COMMENT ON COLUMN ORDER_MARKETING_DEALER.DEALER_ORG_ID IS '客户标识';

COMMENT ON COLUMN ORDER_MARKETING_DEALER.DEALER_ORG_NAME IS '????';

COMMENT ON COLUMN ORDER_MARKETING_DEALER.CREATE_ID IS '???ID';

COMMENT ON COLUMN ORDER_MARKETING_DEALER.UPDATE_ID IS '???ID';

COMMENT ON COLUMN ORDER_MARKETING_DEALER.CREATE_DATE IS '????';

COMMENT ON COLUMN ORDER_MARKETING_DEALER.UPDATE_DATE IS '????';

COMMENT ON TABLE ORDER_MARKETING_DEALER IS '???????';

-- ----------------------------
-- Table structure for ORDER_NORMATIVE_DETAIL
-- ----------------------------
CREATE TABLE ORDER_NORMATIVE_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SCORE_INFO_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ASSESSMENT_CRITERIA NUMBER(13,0) VISIBLE DEFAULT 0,
URGENT_ORDER NUMBER(13,0) VISIBLE DEFAULT 0,
SCORE NUMBER(6,0) VISIBLE DEFAULT 0,
CREATOR_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 CHAR) VISIBLE,
MODIFIER_NAME VARCHAR2(50 CHAR) VISIBLE,
MODIFY_TIME DATE VISIBLE
);

COMMENT ON COLUMN ORDER_NORMATIVE_DETAIL.ID IS '非业务主键id';

COMMENT ON COLUMN ORDER_NORMATIVE_DETAIL.SCORE_INFO_ID IS '评分信息id';

COMMENT ON COLUMN ORDER_NORMATIVE_DETAIL.ASSESSMENT_CRITERIA IS '????';

COMMENT ON COLUMN ORDER_NORMATIVE_DETAIL.URGENT_ORDER IS '????';

COMMENT ON COLUMN ORDER_NORMATIVE_DETAIL.SCORE IS '??';

COMMENT ON COLUMN ORDER_NORMATIVE_DETAIL.CREATOR_ID IS '创建人id';

COMMENT ON COLUMN ORDER_NORMATIVE_DETAIL.CREATOR_NAME IS '创建人姓名';

COMMENT ON COLUMN ORDER_NORMATIVE_DETAIL.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN ORDER_NORMATIVE_DETAIL.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN ORDER_NORMATIVE_DETAIL.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN ORDER_NORMATIVE_DETAIL.MODIFY_TIME IS '????';

COMMENT ON TABLE ORDER_NORMATIVE_DETAIL IS '?????????';

-- ----------------------------
-- Table structure for OVERALL_COMPLETE_DETAIL
-- ----------------------------
CREATE TABLE OVERALL_COMPLETE_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SCORE_INFO_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ACTUAL_AMOUNT NUMBER(22,3) VISIBLE DEFAULT 0,
TARGET_AMOUNT NUMBER(22,3) VISIBLE DEFAULT 0,
COMPLETE_RATE VARCHAR2(30 BYTE) VISIBLE,
SCORE NUMBER(6,0) VISIBLE DEFAULT 0,
CREATOR_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 CHAR) VISIBLE,
MODIFIER_NAME VARCHAR2(50 CHAR) VISIBLE,
MODIFY_TIME DATE VISIBLE
);

COMMENT ON COLUMN OVERALL_COMPLETE_DETAIL.ID IS '非业务主键id';

COMMENT ON COLUMN OVERALL_COMPLETE_DETAIL.SCORE_INFO_ID IS '评分信息id';

COMMENT ON COLUMN OVERALL_COMPLETE_DETAIL.ACTUAL_AMOUNT IS '????';

COMMENT ON COLUMN OVERALL_COMPLETE_DETAIL.TARGET_AMOUNT IS '????';

COMMENT ON COLUMN OVERALL_COMPLETE_DETAIL.COMPLETE_RATE IS '???';

COMMENT ON COLUMN OVERALL_COMPLETE_DETAIL.SCORE IS '??';

COMMENT ON COLUMN OVERALL_COMPLETE_DETAIL.CREATOR_ID IS '创建人id';

COMMENT ON COLUMN OVERALL_COMPLETE_DETAIL.CREATOR_NAME IS '创建人姓名';

COMMENT ON COLUMN OVERALL_COMPLETE_DETAIL.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN OVERALL_COMPLETE_DETAIL.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN OVERALL_COMPLETE_DETAIL.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN OVERALL_COMPLETE_DETAIL.MODIFY_TIME IS '????';

COMMENT ON TABLE OVERALL_COMPLETE_DETAIL IS '????????';

-- ----------------------------
-- Table structure for PACKAGE_SPEC
-- ----------------------------
CREATE TABLE PACKAGE_SPEC (
ID VARCHAR2(50 BYTE) VISIBLE NOT NULL,
PACKAGE_NO VARCHAR2(50 BYTE) VISIBLE,
PACKAGE_NAME VARCHAR2(50 BYTE) VISIBLE,
SPEC VARCHAR2(50 BYTE) VISIBLE,
COST NUMBER(11,2) VISIBLE,
WEIGHT NUMBER(11,2) VISIBLE,
PACKAGE_METHOD VARCHAR2(50 BYTE) VISIBLE,
REMARK VARCHAR2(50 BYTE) VISIBLE,
CREATE_ID VARCHAR2(50 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(50 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE,
MATERIALS_NO VARCHAR2(50 BYTE) VISIBLE,
ORG_ID VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN PACKAGE_SPEC.ID IS 'ID';

COMMENT ON COLUMN PACKAGE_SPEC.PACKAGE_NO IS '?????';

COMMENT ON COLUMN PACKAGE_SPEC.PACKAGE_NAME IS '?????';

COMMENT ON COLUMN PACKAGE_SPEC.SPEC IS '??????*?*??';

COMMENT ON COLUMN PACKAGE_SPEC.COST IS '????';

COMMENT ON COLUMN PACKAGE_SPEC.WEIGHT IS '??';

COMMENT ON COLUMN PACKAGE_SPEC.PACKAGE_METHOD IS '????';

COMMENT ON COLUMN PACKAGE_SPEC.REMARK IS '??';

COMMENT ON COLUMN PACKAGE_SPEC.CREATE_ID IS '???ID';

COMMENT ON COLUMN PACKAGE_SPEC.CREATE_NAME IS '?????';

COMMENT ON COLUMN PACKAGE_SPEC.CREATE_TIME IS '????';

COMMENT ON COLUMN PACKAGE_SPEC.MATERIALS_NO IS '???';

COMMENT ON COLUMN PACKAGE_SPEC.ORG_ID IS '??ID';

COMMENT ON TABLE PACKAGE_SPEC IS '//PACKAGE_SPEC';

-- ----------------------------
-- Table structure for PRICE_CHANGE_RECORD
-- ----------------------------
CREATE TABLE PRICE_CHANGE_RECORD (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
MATERIALS_NO VARCHAR2(15 BYTE) VISIBLE,
TAX_NOT_PRICE NUMBER(9,2) VISIBLE,
TAX_RATE NUMBER(9,2) VISIBLE,
STANDARD_PRICE NUMBER(9,2) VISIBLE,
PLANED_PRICE NUMBER(9,2) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(50 BYTE) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN PRICE_CHANGE_RECORD.ID IS '主键ID';

COMMENT ON COLUMN PRICE_CHANGE_RECORD.ORG_ID IS '????';

COMMENT ON COLUMN PRICE_CHANGE_RECORD.MATERIALS_NO IS '????';

COMMENT ON COLUMN PRICE_CHANGE_RECORD.TAX_NOT_PRICE IS '??????';

COMMENT ON COLUMN PRICE_CHANGE_RECORD.TAX_RATE IS '??';

COMMENT ON COLUMN PRICE_CHANGE_RECORD.STANDARD_PRICE IS '?????';

COMMENT ON COLUMN PRICE_CHANGE_RECORD.PLANED_PRICE IS '????';

COMMENT ON COLUMN PRICE_CHANGE_RECORD.CREATE_ID IS '???';

COMMENT ON COLUMN PRICE_CHANGE_RECORD.CREATE_NAME IS '????';

COMMENT ON COLUMN PRICE_CHANGE_RECORD.CREATE_DATE IS '????';

COMMENT ON TABLE PRICE_CHANGE_RECORD IS '???????';

-- ----------------------------
-- Table structure for PRINT_TEMPLATE
-- ----------------------------
CREATE TABLE PRINT_TEMPLATE (
ID VARCHAR2(20 BYTE) VISIBLE,
TEMPLATE_NAME VARCHAR2(200 CHAR) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(200 CHAR) VISIBLE,
CREATE_DATE DATE VISIBLE,
HEAD_MESSAGE VARCHAR2(500 CHAR) VISIBLE,
BOTTOM_MESSAGE VARCHAR2(1000 CHAR) VISIBLE,
IS_DEFAULT NUMBER(1,0) VISIBLE DEFAULT 0  ,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0  ,
HEAD_TYPE NUMBER(11,0) VISIBLE,
TEMPLATE_TYPE VARCHAR2(50 CHAR) VISIBLE,
HEAD_FONT_SIZE NUMBER(8,0) VISIBLE,
IS_NOTE NUMBER(1,0) VISIBLE DEFAULT 0  ,
IS_PRINT_LINE NUMBER(1,0) VISIBLE DEFAULT 0  ,
PRINT_LINE_NUM NUMBER(8,0) VISIBLE,
PRINT_COLUMN VARCHAR2(500 CHAR) VISIBLE,
IS_PRINT_MIN_CODE NUMBER(1,0) VISIBLE DEFAULT 0  ,
IS_HEADLINE_FONT_BOLD NUMBER(1,0) VISIBLE DEFAULT 0  ,
IS_BODY_AUTO_LINE_WRAP NUMBER(1,0) VISIBLE DEFAULT 0  ,
BODY_FONT_SIZE NUMBER(8,0) VISIBLE,
HEADER_COLUMN_NUM NUMBER(8,0) VISIBLE,
FOOTER_COLUMN_NUM NUMBER(8,0) VISIBLE,
HEADER_FOOTER_COLUMN_INFO VARCHAR2(4000 CHAR) VISIBLE,
BODY_COLUMN_INFO VARCHAR2(2500 CHAR) VISIBLE,
IS_PRINT_PAGE_SUBTOTAL NUMBER(4,0) VISIBLE DEFAULT 0  ,
PAGE_SETTING VARCHAR2(1024 CHAR) VISIBLE,
LINE_HEIGHT NUMBER(12,2) VISIBLE,
IS_RECEIPT NUMBER(1,0) VISIBLE DEFAULT 0  ,
CONTENT_SETTING VARCHAR2(1024 CHAR) VISIBLE,
HEAD_DESC VARCHAR2(50 BYTE) VISIBLE,
NAME_DESCHEAD_FONT_SIZE NUMBER(8,0) VISIBLE,
IS_NAME_DESC_FONT_BOLD NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN PRINT_TEMPLATE.ID IS 'id';

COMMENT ON COLUMN PRINT_TEMPLATE.TEMPLATE_NAME IS 'id';

COMMENT ON COLUMN PRINT_TEMPLATE.CREATE_ID IS 'id';

COMMENT ON COLUMN PRINT_TEMPLATE.CREATE_NAME IS 'id';

COMMENT ON COLUMN PRINT_TEMPLATE.CREATE_DATE IS 'id';

COMMENT ON COLUMN PRINT_TEMPLATE.HEAD_MESSAGE IS '????';

COMMENT ON COLUMN PRINT_TEMPLATE.BOTTOM_MESSAGE IS '????';

COMMENT ON COLUMN PRINT_TEMPLATE.IS_DEFAULT IS '????';

COMMENT ON COLUMN PRINT_TEMPLATE.ORG_ID IS '????';

COMMENT ON COLUMN PRINT_TEMPLATE.IS_DEL IS '????';

COMMENT ON COLUMN PRINT_TEMPLATE.HEAD_TYPE IS '??????';

COMMENT ON COLUMN PRINT_TEMPLATE.TEMPLATE_TYPE IS '????';

COMMENT ON COLUMN PRINT_TEMPLATE.HEAD_FONT_SIZE IS '??????';

COMMENT ON COLUMN PRINT_TEMPLATE.IS_NOTE IS '??';

COMMENT ON COLUMN PRINT_TEMPLATE.IS_PRINT_LINE IS '????????';

COMMENT ON COLUMN PRINT_TEMPLATE.PRINT_LINE_NUM IS '????';

COMMENT ON COLUMN PRINT_TEMPLATE.PRINT_COLUMN IS '???';

COMMENT ON COLUMN PRINT_TEMPLATE.IS_PRINT_MIN_CODE IS '???????';

COMMENT ON COLUMN PRINT_TEMPLATE.IS_HEADLINE_FONT_BOLD IS '????????';

COMMENT ON COLUMN PRINT_TEMPLATE.IS_BODY_AUTO_LINE_WRAP IS '???????????';

COMMENT ON COLUMN PRINT_TEMPLATE.BODY_FONT_SIZE IS '?????????';

COMMENT ON COLUMN PRINT_TEMPLATE.HEADER_COLUMN_NUM IS '?????????';

COMMENT ON COLUMN PRINT_TEMPLATE.FOOTER_COLUMN_NUM IS '?????????';

COMMENT ON COLUMN PRINT_TEMPLATE.HEADER_FOOTER_COLUMN_INFO IS '???????';

COMMENT ON COLUMN PRINT_TEMPLATE.BODY_COLUMN_INFO IS '??????????';

COMMENT ON COLUMN PRINT_TEMPLATE.IS_PRINT_PAGE_SUBTOTAL IS '???????';

COMMENT ON COLUMN PRINT_TEMPLATE.PAGE_SETTING IS '??????';

COMMENT ON COLUMN PRINT_TEMPLATE.LINE_HEIGHT IS '??';

COMMENT ON COLUMN PRINT_TEMPLATE.IS_RECEIPT IS '???????';

COMMENT ON COLUMN PRINT_TEMPLATE.CONTENT_SETTING IS '????';

COMMENT ON COLUMN PRINT_TEMPLATE.HEAD_DESC IS '???????';

COMMENT ON COLUMN PRINT_TEMPLATE.NAME_DESCHEAD_FONT_SIZE IS '?????';

COMMENT ON COLUMN PRINT_TEMPLATE.IS_NAME_DESC_FONT_BOLD IS '???????';

COMMENT ON TABLE PRINT_TEMPLATE IS '?????';

-- ----------------------------
-- Table structure for PURCHASE_GROUP
-- ----------------------------
CREATE TABLE PURCHASE_GROUP (
CODE VARCHAR2(30 CHAR) VISIBLE NOT NULL,
NOTE VARCHAR2(255 CHAR) VISIBLE
);

COMMENT ON COLUMN PURCHASE_GROUP.CODE IS '采购组编码';

COMMENT ON COLUMN PURCHASE_GROUP.NOTE IS '?????';

COMMENT ON TABLE PURCHASE_GROUP IS '//PURCHASE_GROUP';

-- ----------------------------
-- Table structure for PURCHASE_INBOUND
-- ----------------------------
CREATE TABLE PURCHASE_INBOUND (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
PURCHASE_INBOUND_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
PURCHASE_REQUEST_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SUPPLIER_ORGID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SUPPLIER_NAME VARCHAR2(100 CHAR) VISIBLE,
ORGID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
WAREHOUSE_CODE VARCHAR2(30 CHAR) VISIBLE,
STATUS NUMBER(1,0) VISIBLE,
NOTE VARCHAR2(255 CHAR) VISIBLE,
DEPT_ID VARCHAR2(30 CHAR) VISIBLE,
DEPT_NAME VARCHAR2(100 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(100 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
IN_AREA VARCHAR2(60 BYTE) VISIBLE,
SAP_IN_AREA VARCHAR2(100 BYTE) VISIBLE,
VOUCHER_NO VARCHAR2(30 CHAR) VISIBLE,
SAP_ERROR_MSG VARCHAR2(500 CHAR) VISIBLE,
SAP_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
SEND_ORDER VARCHAR2(30 CHAR) VISIBLE,
RECEIPT_USER VARCHAR2(30 CHAR) VISIBLE,
RECEIPT_DATE TIMESTAMP(6) VISIBLE,
IS_RECEIPT NUMBER(1,0) VISIBLE DEFAULT 0,
POST_TIME DATE VISIBLE,
INBOUND_FINISH_TIME TIMESTAMP(6) VISIBLE,
ERP_PR_NO VARCHAR2(50 BYTE) VISIBLE,
ERP_PI_NO VARCHAR2(50 BYTE) VISIBLE,
ERP_SYNC_STATUS VARCHAR2(1 BYTE) VISIBLE,
ERP_SYNC_DATE DATE VISIBLE,
IS_BARCODE NUMBER(1,0) VISIBLE,
RECEIVER_NAME VARCHAR2(255 BYTE) VISIBLE
);

COMMENT ON COLUMN PURCHASE_INBOUND.ID IS '唯一标识';

COMMENT ON COLUMN PURCHASE_INBOUND.PURCHASE_INBOUND_ORDER IS '采购入库单号';

COMMENT ON COLUMN PURCHASE_INBOUND.PURCHASE_REQUEST_ORDER IS '采购申请单号，对应PURCHASE_REQUEST.BILL_NO';

COMMENT ON COLUMN PURCHASE_INBOUND.SUPPLIER_ORGID IS '供应商orgid';

COMMENT ON COLUMN PURCHASE_INBOUND.SUPPLIER_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_INBOUND.ORGID IS 'orgid';

COMMENT ON COLUMN PURCHASE_INBOUND.WAREHOUSE_CODE IS '????';

COMMENT ON COLUMN PURCHASE_INBOUND.STATUS IS '?? 0???1????2??';

COMMENT ON COLUMN PURCHASE_INBOUND.NOTE IS '??';

COMMENT ON COLUMN PURCHASE_INBOUND.DEPT_ID IS '?????id';

COMMENT ON COLUMN PURCHASE_INBOUND.DEPT_NAME IS '???????';

COMMENT ON COLUMN PURCHASE_INBOUND.CREATE_ID IS '???id';

COMMENT ON COLUMN PURCHASE_INBOUND.CREATE_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_INBOUND.CREATE_DATE IS '????';

COMMENT ON COLUMN PURCHASE_INBOUND.IN_AREA IS '????';

COMMENT ON COLUMN PURCHASE_INBOUND.SAP_IN_AREA IS 'sap??';

COMMENT ON COLUMN PURCHASE_INBOUND.VOUCHER_NO IS '??????';

COMMENT ON COLUMN PURCHASE_INBOUND.SAP_ERROR_MSG IS 'SAP???????';

COMMENT ON COLUMN PURCHASE_INBOUND.SAP_STATUS IS 'SAP???? 0???1???2????';

COMMENT ON COLUMN PURCHASE_INBOUND.IS_DEL IS '????';

COMMENT ON COLUMN PURCHASE_INBOUND.SEND_ORDER IS '????';

COMMENT ON COLUMN PURCHASE_INBOUND.RECEIPT_USER IS '?????';

COMMENT ON COLUMN PURCHASE_INBOUND.RECEIPT_DATE IS '??????';

COMMENT ON COLUMN PURCHASE_INBOUND.IS_RECEIPT IS '???? 0?1?';

COMMENT ON COLUMN PURCHASE_INBOUND.POST_TIME IS '????';

COMMENT ON COLUMN PURCHASE_INBOUND.INBOUND_FINISH_TIME IS '??????';

COMMENT ON COLUMN PURCHASE_INBOUND.ERP_PR_NO IS 'ERP?????';

COMMENT ON COLUMN PURCHASE_INBOUND.ERP_PI_NO IS 'ERP??????';

COMMENT ON COLUMN PURCHASE_INBOUND.ERP_SYNC_STATUS IS 'ERP???? 0-???, 1-???, 2-????';

COMMENT ON COLUMN PURCHASE_INBOUND.ERP_SYNC_DATE IS 'ERP????';

COMMENT ON COLUMN PURCHASE_INBOUND.IS_BARCODE IS '?????? 0-?, 1-?';

COMMENT ON COLUMN PURCHASE_INBOUND.RECEIVER_NAME IS '收货人';

COMMENT ON TABLE PURCHASE_INBOUND IS '//PURCHASE_INBOUND';

-- ----------------------------
-- Table structure for PURCHASE_INBOUND_DETAIL
-- ----------------------------
CREATE TABLE PURCHASE_INBOUND_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
PURCHASE_INBOUND_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIAL_NO VARCHAR2(30 CHAR) VISIBLE,
MATERIAL_NAME VARCHAR2(255 CHAR) VISIBLE,
MATERIAL_TYPE VARCHAR2(255 CHAR) VISIBLE,
UNIT VARCHAR2(100 CHAR) VISIBLE,
PRICE NUMBER(11,2) VISIBLE,
TOTAL_PRICE NUMBER(11,2) VISIBLE,
QTY NUMBER(14,3) VISIBLE,
SEND_QTY NUMBER(14,3) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE,
REAL_AMOUNT NUMBER(14,3) VISIBLE,
STATUS NUMBER(1,0) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(100 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
ORGID VARCHAR2(30 CHAR) VISIBLE,
ROW_NO NUMBER(10,0) VISIBLE,
INBOUND_FINISH_TIME TIMESTAMP(6) VISIBLE,
MATERIALS_SHORT_NO VARCHAR2(255 BYTE) VISIBLE,
MATERIALS_DES_EN VARCHAR2(255 BYTE) VISIBLE
);

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.ID IS '唯一标识';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.PURCHASE_INBOUND_ORDER IS '采购入库单号';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.MATERIAL_NO IS '????';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.MATERIAL_NAME IS '????';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.MATERIAL_TYPE IS '????';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.UNIT IS '??';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.PRICE IS '??';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.TOTAL_PRICE IS '??';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.QTY IS '????';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.SEND_QTY IS '????';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.AMOUNT IS '??????';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.REAL_AMOUNT IS '??????';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.STATUS IS '?? 0???1????2??';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.CREATE_ID IS '???id';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.CREATE_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.CREATE_DATE IS '????';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.ORGID IS 'orgid';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.ROW_NO IS '????';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.INBOUND_FINISH_TIME IS '??????';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.MATERIALS_SHORT_NO IS '零件名称';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL.MATERIALS_DES_EN IS '零件英文名';

COMMENT ON TABLE PURCHASE_INBOUND_DETAIL IS '//PURCHASE_INBOUND_DETAIL';

-- ----------------------------
-- Table structure for PURCHASE_INBOUND_DETAIL_EXTEND
-- ----------------------------
CREATE TABLE PURCHASE_INBOUND_DETAIL_EXTEND (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
INVOICES_ISSUED NUMBER(22,2) VISIBLE,
INVOICES_PRICE NUMBER(22,2) VISIBLE
);

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL_EXTEND.INVOICES_ISSUED IS '?????';

COMMENT ON COLUMN PURCHASE_INBOUND_DETAIL_EXTEND.INVOICES_PRICE IS '??????';

COMMENT ON TABLE PURCHASE_INBOUND_DETAIL_EXTEND IS '//PURCHASE_INBOUND_DETAIL_EXTEND';

-- ----------------------------
-- Table structure for PURCHASE_INVOICE_APPLY
-- ----------------------------
CREATE TABLE PURCHASE_INVOICE_APPLY (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
PURCHASE_INVOICE_ORDER VARCHAR2(30 CHAR) VISIBLE,
SUPPLIER_ORGID VARCHAR2(30 CHAR) VISIBLE,
SUPPLIER_NAME VARCHAR2(100 BYTE) VISIBLE,
INVOICE_PRICE NUMBER(20,2) VISIBLE,
APPLY_PRICE NUMBER(20,2) VISIBLE,
STATUS NUMBER(1,0) VISIBLE,
REMARK VARCHAR2(100 BYTE) VISIBLE,
APPLY_ID VARCHAR2(30 CHAR) VISIBLE,
APPLY_NAME VARCHAR2(30 CHAR) VISIBLE,
APPLY_TIME TIMESTAMP(6) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE,
AUDIT_OPINION VARCHAR2(200 BYTE) VISIBLE,
REVIEWER VARCHAR2(100 BYTE) VISIBLE,
REVIEW_TIME TIMESTAMP(6) VISIBLE,
ORG_ID VARCHAR2(30 BYTE) VISIBLE
);

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.ID IS 'ID';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.PURCHASE_INVOICE_ORDER IS '????????';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.SUPPLIER_ORGID IS '???orgid';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.SUPPLIER_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.INVOICE_PRICE IS '????';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.APPLY_PRICE IS '???????';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.STATUS IS '???0????1?????2????';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.REMARK IS '??';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.APPLY_ID IS '???id';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.APPLY_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.APPLY_TIME IS '????';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.IS_DEL IS '????';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.AUDIT_OPINION IS '????';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.REVIEWER IS '???';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.REVIEW_TIME IS '????';

COMMENT ON COLUMN PURCHASE_INVOICE_APPLY.ORG_ID IS '????';

COMMENT ON TABLE PURCHASE_INVOICE_APPLY IS '???????';

-- ----------------------------
-- Table structure for PURCHASE_PAY_VERIFICATION
-- ----------------------------
CREATE TABLE PURCHASE_PAY_VERIFICATION (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
PURCHASE_VERIFICATION_ORDER VARCHAR2(30 CHAR) VISIBLE,
SUPPLIER_ORGID VARCHAR2(30 CHAR) VISIBLE,
SUPPLIER_NAME VARCHAR2(100 BYTE) VISIBLE,
PAY_PRICE NUMBER(20,2) VISIBLE,
STATUS NUMBER(1,0) VISIBLE,
REMARK VARCHAR2(100 BYTE) VISIBLE,
APPLY_ID VARCHAR2(30 CHAR) VISIBLE,
APPLY_NAME VARCHAR2(100 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE,
AUDIT_OPINION VARCHAR2(200 BYTE) VISIBLE,
REVIEWER VARCHAR2(100 BYTE) VISIBLE,
APPLY_TIME TIMESTAMP(6) VISIBLE,
REVIEW_TIME TIMESTAMP(6) VISIBLE,
ORG_ID VARCHAR2(30 BYTE) VISIBLE
);

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.ID IS 'ID';

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.PURCHASE_VERIFICATION_ORDER IS '????????';

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.SUPPLIER_ORGID IS '???orgid';

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.SUPPLIER_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.PAY_PRICE IS '????';

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.STATUS IS '???0????1?????2?????3???
';

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.REMARK IS '??';

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.APPLY_ID IS '???id';

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.APPLY_NAME IS '???';

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.IS_DEL IS '????';

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.AUDIT_OPINION IS '????';

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.REVIEWER IS '???';

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.APPLY_TIME IS '????';

COMMENT ON COLUMN PURCHASE_PAY_VERIFICATION.REVIEW_TIME IS '????';

COMMENT ON TABLE PURCHASE_PAY_VERIFICATION IS '???????';

-- ----------------------------
-- Table structure for PURCHASE_PLAN
-- ----------------------------
CREATE TABLE PURCHASE_PLAN (
BILL_NO VARCHAR2(20 CHAR) VISIBLE,
ORG_ID VARCHAR2(20 CHAR) VISIBLE,
MATERIALS_NO VARCHAR2(20 BYTE) VISIBLE,
MATERIALS_DES VARCHAR2(50 CHAR) VISIBLE,
DELIVER_TYPE_ID VARCHAR2(20 CHAR) VISIBLE,
PURCHASE_TYPE VARCHAR2(50 CHAR) VISIBLE,
NEED_AMOUNT NUMBER(14,3) VISIBLE,
SURPLUS_AMOUNT NUMBER(14,3) VISIBLE,
CREATE_BILL_DATE DATE VISIBLE,
USEABLE_AMOUNT NUMBER(14,3) VISIBLE,
REAL_AMOUNT NUMBER(14,3) VISIBLE,
PLAN_AMOUNT NUMBER(14,3) VISIBLE,
PURCHASED_AMOUNT NUMBER(14,3) VISIBLE,
CREATE_DATE DATE VISIBLE
);

COMMENT ON COLUMN PURCHASE_PLAN.BILL_NO IS '??';

COMMENT ON COLUMN PURCHASE_PLAN.ORG_ID IS '??ID';

COMMENT ON COLUMN PURCHASE_PLAN.MATERIALS_NO IS '????';

COMMENT ON COLUMN PURCHASE_PLAN.MATERIALS_DES IS '????';

COMMENT ON COLUMN PURCHASE_PLAN.DELIVER_TYPE_ID IS '????ID';

COMMENT ON COLUMN PURCHASE_PLAN.PURCHASE_TYPE IS '????';

COMMENT ON COLUMN PURCHASE_PLAN.NEED_AMOUNT IS '???';

COMMENT ON COLUMN PURCHASE_PLAN.SURPLUS_AMOUNT IS '????';

COMMENT ON COLUMN PURCHASE_PLAN.CREATE_BILL_DATE IS '???????';

COMMENT ON COLUMN PURCHASE_PLAN.USEABLE_AMOUNT IS '????';

COMMENT ON COLUMN PURCHASE_PLAN.REAL_AMOUNT IS '????';

COMMENT ON COLUMN PURCHASE_PLAN.PLAN_AMOUNT IS '?????????';

COMMENT ON COLUMN PURCHASE_PLAN.PURCHASED_AMOUNT IS '????';

COMMENT ON COLUMN PURCHASE_PLAN.CREATE_DATE IS '????';

COMMENT ON TABLE PURCHASE_PLAN IS '????';

-- ----------------------------
-- Table structure for PURCHASE_PRICE
-- ----------------------------
CREATE TABLE PURCHASE_PRICE (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(15 BYTE) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(100 CHAR) VISIBLE,
MATERIALS_TYPE VARCHAR2(50 CHAR) VISIBLE,
UNIT VARCHAR2(30 BYTE) VISIBLE,
PRICE NUMBER(9,0) VISIBLE,
SUPPLIER_CODE VARCHAR2(20 BYTE) VISIBLE,
SUPPLIER_NAME VARCHAR2(200 BYTE) VISIBLE,
SUPPLIER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
SUPPLIER_CLASS_ID NUMBER(10,0) VISIBLE,
DELETE_FLAG NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
CREATOR_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 BYTE) VISIBLE,
MODIFIER_NAME VARCHAR2(50 BYTE) VISIBLE,
MODIFY_TIME DATE VISIBLE,
DELETE_ID VARCHAR2(30 BYTE) VISIBLE,
DELETE_NAME VARCHAR2(50 BYTE) VISIBLE,
DELETE_TIME DATE VISIBLE,
REPLACE_MATERIALS_NO VARCHAR2(15 BYTE) VISIBLE,
PROVISIONAL_PRICE NUMBER(1,0) VISIBLE
);

COMMENT ON COLUMN PURCHASE_PRICE.ID IS '采购价格维护表ID';

COMMENT ON COLUMN PURCHASE_PRICE.ORG_ID IS '企业标识';

COMMENT ON COLUMN PURCHASE_PRICE.MATERIALS_NO IS '物料编号';

COMMENT ON COLUMN PURCHASE_PRICE.MATERIALS_DES IS '????';

COMMENT ON COLUMN PURCHASE_PRICE.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN PURCHASE_PRICE.UNIT IS '????';

COMMENT ON COLUMN PURCHASE_PRICE.PRICE IS '????';

COMMENT ON COLUMN PURCHASE_PRICE.SUPPLIER_CODE IS '?????';

COMMENT ON COLUMN PURCHASE_PRICE.SUPPLIER_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_PRICE.SUPPLIER_ORG_ID IS '??????????????';

COMMENT ON COLUMN PURCHASE_PRICE.SUPPLIER_CLASS_ID IS '?????ID';

COMMENT ON COLUMN PURCHASE_PRICE.DELETE_FLAG IS '删除标记(0否；1是)';

COMMENT ON COLUMN PURCHASE_PRICE.CREATOR_ID IS '创建人ID';

COMMENT ON COLUMN PURCHASE_PRICE.CREATOR_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_PRICE.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN PURCHASE_PRICE.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN PURCHASE_PRICE.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_PRICE.MODIFY_TIME IS '????';

COMMENT ON COLUMN PURCHASE_PRICE.DELETE_ID IS '???ID';

COMMENT ON COLUMN PURCHASE_PRICE.DELETE_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_PRICE.DELETE_TIME IS '????';

COMMENT ON COLUMN PURCHASE_PRICE.REPLACE_MATERIALS_NO IS '??????';

COMMENT ON COLUMN PURCHASE_PRICE.PROVISIONAL_PRICE IS '?????   0?  1?';

COMMENT ON TABLE PURCHASE_PRICE IS '???????';

-- ----------------------------
-- Table structure for PURCHASE_REQUEST
-- ----------------------------
CREATE TABLE PURCHASE_REQUEST (
BILL_ID VARCHAR2(20 BYTE) VISIBLE,
PURCHASE_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
PURCHASE_ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
SUPPLIER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
SUPPLIER_ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
DISPATCHER_ID VARCHAR2(20 BYTE) VISIBLE,
DISPATCHER_NAME VARCHAR2(200 CHAR) VISIBLE,
PURCHASE_TYPE VARCHAR2(50 CHAR) VISIBLE,
TOTAL_VALUE NUMBER(20,0) VISIBLE,
SETTLEMENT_VALUE NUMBER(20,0) VISIBLE,
SHIPPING_METHOD VARCHAR2(50 CHAR) VISIBLE,
RECEIVER_NAME VARCHAR2(200 CHAR) VISIBLE,
RECEIVER_TEL VARCHAR2(11 BYTE) VISIBLE,
RECEIVER_FAX VARCHAR2(20 CHAR) VISIBLE,
RECEIVER_ADDRESS VARCHAR2(200 CHAR) VISIBLE,
REMARK VARCHAR2(500 CHAR) VISIBLE,
BILL_STATUS VARCHAR2(50 CHAR) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_DATE DATE VISIBLE,
CREATE_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
AUDIT_ID VARCHAR2(20 BYTE) VISIBLE,
AUDIT_DATE DATE VISIBLE,
AUDIT_MESSAGE VARCHAR2(500 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE,
AUDIT_NAME VARCHAR2(20 CHAR) VISIBLE DEFAULT NULL,
BILL_NO VARCHAR2(30 CHAR) VISIBLE,
STATUS_DESC VARCHAR2(50 CHAR) VISIBLE,
TYPE_DESC VARCHAR2(50 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(200 CHAR) VISIBLE,
UPDATE_NAME VARCHAR2(200 CHAR) VISIBLE,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
IS_SALE VARCHAR2(30 BYTE) VISIBLE DEFAULT 0,
INBOUND_ENABLE NUMBER(1,0) VISIBLE,
PURCHASE_GROUP VARCHAR2(30 CHAR) VISIBLE,
DRAWER_ORG_ID VARCHAR2(30 CHAR) VISIBLE,
DRAWER_ORG_NAME VARCHAR2(255 CHAR) VISIBLE,
VOUCHER_NO VARCHAR2(30 CHAR) VISIBLE,
SAP_ERROR_MSG VARCHAR2(500 CHAR) VISIBLE,
SAP_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
SUBMIT_DATE DATE VISIBLE,
IS_DIRECT_CAST NUMBER(1,0) VISIBLE DEFAULT 0,
ATTACH_NAME VARCHAR2(200 CHAR) VISIBLE,
COUNTRY VARCHAR2(200 BYTE) VISIBLE,
MODEL VARCHAR2(200 BYTE) VISIBLE,
BUY_PLAN_ORDER VARCHAR2(30 CHAR) VISIBLE,
IS_IMPROVE NUMBER(1,0) VISIBLE DEFAULT 0 ,
SAP_BILL_NO VARCHAR2(30 CHAR) VISIBLE,
ORDER_TYPE VARCHAR2(20 CHAR) VISIBLE,
PURCHASE_TYPE_CHILD_ID VARCHAR2(20 BYTE) VISIBLE,
PURCHASE_TYPE_CHILD_NAME VARCHAR2(32 BYTE) VISIBLE,
PURCHASE_ORD_TYPE VARCHAR2(200 CHAR) VISIBLE,
PURCHASE_ORD_TYPE_DESC VARCHAR2(200 CHAR) VISIBLE,
PRINT_STATE NUMBER(1,0) VISIBLE DEFAULT 0,
SEND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
IS_DIRECT_ADD NUMBER(1,0) VISIBLE DEFAULT 0,
DIRECT_LIMIT NUMBER(14,3) VISIBLE DEFAULT 0,
DIRECT_SOURCE_ORDER VARCHAR2(30 CHAR) VISIBLE,
DELIVERY_ORG_ID VARCHAR2(30 CHAR) VISIBLE,
DELIVERY_ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
SOLD_ORG_ID VARCHAR2(30 CHAR) VISIBLE,
SOLD_ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
SHIPPING_METHOD_ID VARCHAR2(32 BYTE) VISIBLE,
SEND_TYPE_CHILD_ID VARCHAR2(20 BYTE) VISIBLE,
SEND_TYPE_CHILD_NAME VARCHAR2(32 BYTE) VISIBLE,
SAP_IN_AREA VARCHAR2(30 CHAR) VISIBLE,
ADDRESS_CODE VARCHAR2(60 BYTE) VISIBLE,
APPLICATION_NO VARCHAR2(50 BYTE) VISIBLE,
SERVICE_NO VARCHAR2(50 BYTE) VISIBLE,
NOTIFICATION_NO VARCHAR2(50 BYTE) VISIBLE,
APPLICATION_TIME DATE VISIBLE,
DEVICE_NO VARCHAR2(50 BYTE) VISIBLE,
APPLICATION_QTY NUMBER(9,2) VISIBLE,
APPLICATION_NAME VARCHAR2(50 BYTE) VISIBLE,
SYNC_CRM_FLAG VARCHAR2(4 BYTE) VISIBLE DEFAULT '0',
SYNC_CRM_MSG VARCHAR2(50 BYTE) VISIBLE,
PLAN_CREATE_NAME VARCHAR2(50 BYTE) VISIBLE,
ALL_INBOUND_TIME TIMESTAMP(6) VISIBLE,
PURCHASE_CONTRACT_NO VARCHAR2(50 BYTE) VISIBLE,
DELIVERY_DATE TIMESTAMP(6) VISIBLE,
FORWARD NUMBER(1,0) VISIBLE DEFAULT 0,
SEND_COMPANY_CODE VARCHAR2(20 BYTE) VISIBLE,
SEND_COMPANY_NAME VARCHAR2(100 CHAR) VISIBLE,
COMPANY_TYPE VARCHAR2(50 CHAR) VISIBLE,
TOTAL_QUANTITY NUMBER(14,0) VISIBLE,
DEPT_CODE VARCHAR2(30 BYTE) VISIBLE,
DEPT_NAME VARCHAR2(100 BYTE) VISIBLE,
PURCHASE_CODE VARCHAR2(30 BYTE) VISIBLE,
PURCHASE_NAME VARCHAR2(100 BYTE) VISIBLE,
SELF_MADE NUMBER(10,0) VISIBLE DEFAULT 0 ,
SALES_CODE VARCHAR2(64 BYTE) VISIBLE,
SALES_CODE_DES VARCHAR2(255 BYTE) VISIBLE,
KUNMING_SETTLEMENT NUMBER VISIBLE DEFAULT 1  ,
ERP_BILL_NO VARCHAR2(50 BYTE) VISIBLE,
SUPPLIER_CODE VARCHAR2(20 BYTE) VISIBLE
);

COMMENT ON COLUMN PURCHASE_REQUEST.BILL_ID IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.PURCHASE_ORG_ID IS '???orgID';

COMMENT ON COLUMN PURCHASE_REQUEST.PURCHASE_ORG_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST.SUPPLIER_ORG_ID IS '???orgID';

COMMENT ON COLUMN PURCHASE_REQUEST.SUPPLIER_ORG_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST.DISPATCHER_ID IS '???id';

COMMENT ON COLUMN PURCHASE_REQUEST.DISPATCHER_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST.PURCHASE_TYPE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.TOTAL_VALUE IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST.SETTLEMENT_VALUE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.SHIPPING_METHOD IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.RECEIVER_NAME IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST.RECEIVER_TEL IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.RECEIVER_FAX IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST.RECEIVER_ADDRESS IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.REMARK IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST.BILL_STATUS IS '???? 0?? 1 ??? 2 ???? 3 ???? 4 ??';

COMMENT ON COLUMN PURCHASE_REQUEST.CREATE_ID IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST.CREATE_DATE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.CREATE_ORG_ID IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.UPDATE_ID IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST.UPDATE_DATE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.AUDIT_ID IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST.AUDIT_DATE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.AUDIT_MESSAGE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.IS_DEL IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.AUDIT_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST.BILL_NO IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST.STATUS_DESC IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.STATUS IS '????:0:???,1:????,2:???';

COMMENT ON COLUMN PURCHASE_REQUEST.IS_SALE IS '????????0???????1?????2??????';

COMMENT ON COLUMN PURCHASE_REQUEST.INBOUND_ENABLE IS '????????? 1??2???';

COMMENT ON COLUMN PURCHASE_REQUEST.PURCHASE_GROUP IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST.DRAWER_ORG_ID IS '???orgid';

COMMENT ON COLUMN PURCHASE_REQUEST.DRAWER_ORG_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST.VOUCHER_NO IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.SAP_ERROR_MSG IS 'SAP???????';

COMMENT ON COLUMN PURCHASE_REQUEST.SAP_STATUS IS 'SAP???? 0???1???2????';

COMMENT ON COLUMN PURCHASE_REQUEST.SUBMIT_DATE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.IS_DIRECT_CAST IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.ATTACH_NAME IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.COUNTRY IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST.MODEL IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST.BUY_PLAN_ORDER IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.IS_IMPROVE IS '???? 0-??1-?';

COMMENT ON COLUMN PURCHASE_REQUEST.SAP_BILL_NO IS 'SAP?????';

COMMENT ON COLUMN PURCHASE_REQUEST.ORDER_TYPE IS '???????basic_data_dictionary.CODE = CGDDLX';

COMMENT ON COLUMN PURCHASE_REQUEST.PURCHASE_TYPE_CHILD_ID IS '????????';

COMMENT ON COLUMN PURCHASE_REQUEST.PURCHASE_TYPE_CHILD_NAME IS '????????';

COMMENT ON COLUMN PURCHASE_REQUEST.PURCHASE_ORD_TYPE IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.PURCHASE_ORD_TYPE_DESC IS '????????';

COMMENT ON COLUMN PURCHASE_REQUEST.PRINT_STATE IS '?????? 0???1????2???';

COMMENT ON COLUMN PURCHASE_REQUEST.SEND_STATUS IS '??????? 0???1???2???';

COMMENT ON COLUMN PURCHASE_REQUEST.IS_DIRECT_ADD IS '?????????? 0?1?';

COMMENT ON COLUMN PURCHASE_REQUEST.DIRECT_LIMIT IS '?????????';

COMMENT ON COLUMN PURCHASE_REQUEST.DIRECT_SOURCE_ORDER IS '??????????';

COMMENT ON COLUMN PURCHASE_REQUEST.DELIVERY_ORG_ID IS '???orgid';

COMMENT ON COLUMN PURCHASE_REQUEST.DELIVERY_ORG_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST.SOLD_ORG_ID IS '???orgid';

COMMENT ON COLUMN PURCHASE_REQUEST.SOLD_ORG_NAME IS '???orgid';

COMMENT ON COLUMN PURCHASE_REQUEST.SHIPPING_METHOD_ID IS '????code';

COMMENT ON COLUMN PURCHASE_REQUEST.SEND_TYPE_CHILD_ID IS '????????';

COMMENT ON COLUMN PURCHASE_REQUEST.SEND_TYPE_CHILD_NAME IS '????????';

COMMENT ON COLUMN PURCHASE_REQUEST.SAP_IN_AREA IS 'sap??';

COMMENT ON COLUMN PURCHASE_REQUEST.ADDRESS_CODE IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.APPLICATION_NO IS '?????CRM?';

COMMENT ON COLUMN PURCHASE_REQUEST.SERVICE_NO IS '?????CRM?';

COMMENT ON COLUMN PURCHASE_REQUEST.NOTIFICATION_NO IS '???????CRM?';

COMMENT ON COLUMN PURCHASE_REQUEST.APPLICATION_TIME IS '????(CRM)';

COMMENT ON COLUMN PURCHASE_REQUEST.DEVICE_NO IS '????(CRM)';

COMMENT ON COLUMN PURCHASE_REQUEST.APPLICATION_QTY IS '????(CRM)';

COMMENT ON COLUMN PURCHASE_REQUEST.APPLICATION_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST.SYNC_CRM_FLAG IS '??CRM?? 0??? 1???? 2????';

COMMENT ON COLUMN PURCHASE_REQUEST.SYNC_CRM_MSG IS '??CRM??';

COMMENT ON COLUMN PURCHASE_REQUEST.PLAN_CREATE_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST.ALL_INBOUND_TIME IS '??????????';

COMMENT ON COLUMN PURCHASE_REQUEST.PURCHASE_CONTRACT_NO IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST.DELIVERY_DATE IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST.FORWARD IS '?????0/null??, 1:?';

COMMENT ON COLUMN PURCHASE_REQUEST.SEND_COMPANY_CODE IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.SEND_COMPANY_NAME IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.COMPANY_TYPE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST.TOTAL_QUANTITY IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.DEPT_CODE IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.DEPT_NAME IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.PURCHASE_CODE IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.PURCHASE_NAME IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.SELF_MADE IS '????????0-??1-???? 2???';

COMMENT ON COLUMN PURCHASE_REQUEST.SALES_CODE IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.SALES_CODE_DES IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST.KUNMING_SETTLEMENT IS '?????????1? 0?';

COMMENT ON COLUMN PURCHASE_REQUEST.ERP_BILL_NO IS 'ERP????';

COMMENT ON COLUMN PURCHASE_REQUEST.SUPPLIER_CODE IS '?????(ERP??)';

COMMENT ON TABLE PURCHASE_REQUEST IS '?????';

-- ----------------------------
-- Table structure for PURCHASE_REQUEST_DETAIL
-- ----------------------------
CREATE TABLE PURCHASE_REQUEST_DETAIL (
BILL_ID VARCHAR2(20 BYTE) VISIBLE,
MATERIALS_NO VARCHAR2(20 BYTE) VISIBLE,
MATERIALS_DES VARCHAR2(200 CHAR) VISIBLE,
UNIT VARCHAR2(10 CHAR) VISIBLE,
PRICE NUMBER(9,0) VISIBLE,
SETTLEMENT_PRICE NUMBER(9,0) VISIBLE,
QTY NUMBER(14,3) VISIBLE,
APPLY_TOTAL_PRICE NUMBER(20,0) VISIBLE,
MATERIALS_ID VARCHAR2(20 BYTE) VISIBLE,
SEND_QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
REAL_QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
PRICE_SCHEME_ID VARCHAR2(20 BYTE) VISIBLE,
PRICE_SCHEME_NAME VARCHAR2(200 CHAR) VISIBLE,
ROW_NO NUMBER(10,0) VISIBLE,
NET_PRICE NUMBER(14,3) VISIBLE DEFAULT 0,
DELIVERY_DATE TIMESTAMP(6) VISIBLE DEFAULT sysdate+30,
PRINT_NUM NUMBER(14,3) VISIBLE DEFAULT 0,
PRINT_STATE NUMBER(1,0) VISIBLE DEFAULT 0,
INFORM_QTY NUMBER(14,3) VISIBLE DEFAULT 0,
INVENTORY_PROVIDE_QTY NUMBER(14,3) VISIBLE,
AGENT_PROVIDE_QTY NUMBER(14,3) VISIBLE,
BUYER_DEAL_QTY NUMBER(14,3) VISIBLE,
CUSTOM_MATERIALS_NO VARCHAR2(60 BYTE) VISIBLE,
REMARK VARCHAR2(300 CHAR) VISIBLE,
PURCHASE_GROUP VARCHAR2(60 CHAR) VISIBLE,
REPLACE_MATERIALS_NO VARCHAR2(500 CHAR) VISIBLE,
REPLACE_MATERIALS_DES VARCHAR2(2000 CHAR) VISIBLE,
IS_RAISE NUMBER(1,0) VISIBLE DEFAULT 0,
SIGN_QTY NUMBER(14,3) VISIBLE,
REPLACE_MATERIALS_NOTE VARCHAR2(50 BYTE) VISIBLE,
ALL_INBOUND_TIME TIMESTAMP(6) VISIBLE,
MACHINE_MODEL VARCHAR2(100 BYTE) VISIBLE,
PROVISIONAL_PRICE NUMBER VISIBLE,
ORIGINAL_MATERIALS_NO VARCHAR2(500 CHAR) VISIBLE,
MATERIALS_MEASURE VARCHAR2(600 BYTE) VISIBLE,
YN_PRICE NUMBER(14,3) VISIBLE,
MADE_COMPANY_CODE VARCHAR2(64 BYTE) VISIBLE,
MADE_COMPANY_NAME VARCHAR2(255 BYTE) VISIBLE,
TOTAL_TAX_PRICE NUMBER(14,3) VISIBLE,
SOURCE_BILL_ID VARCHAR2(50 BYTE) VISIBLE,
SOURCE_BILL_CODE VARCHAR2(50 BYTE) VISIBLE,
SOURCE_BILL_ITEM_ID VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.BILL_ID IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.MATERIALS_NO IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.MATERIALS_DES IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.UNIT IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.PRICE IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.SETTLEMENT_PRICE IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.QTY IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.APPLY_TOTAL_PRICE IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.SEND_QTY IS '???????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.REAL_QTY IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.STATUS IS '????:0:???,1:????,2:???';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.PRICE_SCHEME_ID IS '????id';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.PRICE_SCHEME_NAME IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.ROW_NO IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.NET_PRICE IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.DELIVERY_DATE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.PRINT_NUM IS '???????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.PRINT_STATE IS '?????? 0???1????2???';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.INFORM_QTY IS '???????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.INVENTORY_PROVIDE_QTY IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.AGENT_PROVIDE_QTY IS '??????????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.BUYER_DEAL_QTY IS '???????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.CUSTOM_MATERIALS_NO IS '???????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.REMARK IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.PURCHASE_GROUP IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.REPLACE_MATERIALS_NO IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.REPLACE_MATERIALS_DES IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.IS_RAISE IS '?????0?1?';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.SIGN_QTY IS '????????????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.REPLACE_MATERIALS_NOTE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.ALL_INBOUND_TIME IS '????????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.MACHINE_MODEL IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.PROVISIONAL_PRICE IS '?????  0? 1?';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.ORIGINAL_MATERIALS_NO IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.MATERIALS_MEASURE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.YN_PRICE IS '?????????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.MADE_COMPANY_CODE IS '????(????????)';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.MADE_COMPANY_NAME IS '????(????????)';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.TOTAL_TAX_PRICE IS '??????ERP???';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.SOURCE_BILL_ID IS '??id';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.SOURCE_BILL_CODE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_DETAIL.SOURCE_BILL_ITEM_ID IS '????id';

COMMENT ON TABLE PURCHASE_REQUEST_DETAIL IS '???????';

-- ----------------------------
-- Table structure for PURCHASE_REQUEST_INPLANT
-- ----------------------------
CREATE TABLE PURCHASE_REQUEST_INPLANT (
BILL_ID VARCHAR2(20 BYTE) VISIBLE,
PURCHASE_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
PURCHASE_ORG_NAME VARCHAR2(200 BYTE) VISIBLE,
SUPPLIER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
SUPPLIER_ORG_NAME VARCHAR2(200 BYTE) VISIBLE,
DISPATCHER_ID VARCHAR2(20 BYTE) VISIBLE,
DISPATCHER_NAME VARCHAR2(200 BYTE) VISIBLE,
PURCHASE_TYPE VARCHAR2(50 BYTE) VISIBLE,
PURCHASE_TYPE_CHILD_ID VARCHAR2(20 BYTE) VISIBLE,
PURCHASE_TYPE_CHILD_NAME VARCHAR2(32 BYTE) VISIBLE,
TYPE_DESC VARCHAR2(50 BYTE) VISIBLE,
TOTAL_VALUE NUMBER(20,0) VISIBLE,
SETTLEMENT_VALUE NUMBER(20,0) VISIBLE,
SHIPPING_METHOD_ID VARCHAR2(32 BYTE) VISIBLE,
SHIPPING_METHOD VARCHAR2(50 BYTE) VISIBLE,
SEND_TYPE_CHILD_ID VARCHAR2(20 BYTE) VISIBLE,
SEND_TYPE_CHILD_NAME VARCHAR2(32 BYTE) VISIBLE,
RECEIVER_NAME VARCHAR2(200 BYTE) VISIBLE,
RECEIVER_TEL VARCHAR2(11 BYTE) VISIBLE,
RECEIVER_FAX VARCHAR2(20 BYTE) VISIBLE,
RECEIVER_ADDRESS VARCHAR2(200 BYTE) VISIBLE,
REMARK VARCHAR2(500 BYTE) VISIBLE,
BILL_STATUS VARCHAR2(50 BYTE) VISIBLE,
STATUS_DESC VARCHAR2(50 BYTE) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(200 BYTE) VISIBLE,
CREATE_DATE DATE VISIBLE,
CREATE_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_NAME VARCHAR2(200 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
AUDIT_ID VARCHAR2(20 BYTE) VISIBLE,
AUDIT_DATE DATE VISIBLE,
AUDIT_MESSAGE VARCHAR2(200 BYTE) VISIBLE,
AUDIT_NAME VARCHAR2(20 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE,
BILL_NO VARCHAR2(30 BYTE) VISIBLE,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
IS_SALE VARCHAR2(30 BYTE) VISIBLE DEFAULT 0 ,
INBOUND_ENABLE NUMBER(1,0) VISIBLE,
DRAWER_ORG_ID VARCHAR2(30 BYTE) VISIBLE,
DRAWER_ORG_NAME VARCHAR2(255 BYTE) VISIBLE,
VOUCHER_NO VARCHAR2(30 BYTE) VISIBLE,
SAP_ERROR_MSG VARCHAR2(500 BYTE) VISIBLE,
SAP_STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
SUBMIT_DATE DATE VISIBLE,
ATTACH_NAME VARCHAR2(200 BYTE) VISIBLE,
COUNTRY VARCHAR2(200 BYTE) VISIBLE,
MODEL VARCHAR2(200 BYTE) VISIBLE,
BUY_PLAN_ORDER VARCHAR2(30 BYTE) VISIBLE,
SAP_BILL_NO VARCHAR2(30 BYTE) VISIBLE,
ORDER_TYPE VARCHAR2(20 BYTE) VISIBLE,
PURCHASE_ORD_TYPE VARCHAR2(200 BYTE) VISIBLE,
PURCHASE_ORD_TYPE_DESC VARCHAR2(200 BYTE) VISIBLE,
PRINT_STATE NUMBER(1,0) VISIBLE DEFAULT 0 ,
SEND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
DELIVERY_ORG_ID VARCHAR2(30 BYTE) VISIBLE,
DELIVERY_ORG_NAME VARCHAR2(200 BYTE) VISIBLE,
SOLD_ORG_ID VARCHAR2(30 BYTE) VISIBLE,
SOLD_ORG_NAME VARCHAR2(200 BYTE) VISIBLE,
SAP_IN_AREA VARCHAR2(30 BYTE) VISIBLE,
ADDRESS_CODE VARCHAR2(60 BYTE) VISIBLE,
APPLICATION_NO VARCHAR2(50 BYTE) VISIBLE,
SERVICE_NO VARCHAR2(50 BYTE) VISIBLE,
NOTIFICATION_NO VARCHAR2(50 BYTE) VISIBLE,
APPLICATION_TIME DATE VISIBLE,
DEVICE_NO VARCHAR2(50 BYTE) VISIBLE,
APPLICATION_QTY NUMBER(9,2) VISIBLE,
APPLICATION_NAME VARCHAR2(50 BYTE) VISIBLE,
PURCHASE_AUDIT_STATUS NUMBER(1,0) VISIBLE,
PURCHASE_AUDIT_ID VARCHAR2(20 BYTE) VISIBLE,
PURCHASE_AUDIT_NAME VARCHAR2(50 BYTE) VISIBLE,
PURCHASE_AUDIT_TIME DATE VISIBLE,
PURCHASE_AUDIT_ADVICE VARCHAR2(1000 BYTE) VISIBLE,
PLANNER_ID VARCHAR2(20 BYTE) VISIBLE,
PLANNER_NAME VARCHAR2(50 BYTE) VISIBLE,
PRODUCT_BILL_NO VARCHAR2(50 BYTE) VISIBLE,
INSTRUCT_BILL_NO VARCHAR2(50 BYTE) VISIBLE,
MES_STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
WBS_ELEMENT VARCHAR2(200 BYTE) VISIBLE,
PRODUCT_ORDER_DESC VARCHAR2(200 BYTE) VISIBLE,
BASIC_START_DATE DATE VISIBLE,
BASIC_END_DATE DATE VISIBLE
);

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.BILL_ID IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PURCHASE_ORG_ID IS '???orgID';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PURCHASE_ORG_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SUPPLIER_ORG_ID IS '???orgID';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SUPPLIER_ORG_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.DISPATCHER_ID IS '???id';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.DISPATCHER_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PURCHASE_TYPE IS '?????basic_data_dictionary.CODE = CGJB';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PURCHASE_TYPE_CHILD_ID IS '????????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PURCHASE_TYPE_CHILD_NAME IS '????????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.TYPE_DESC IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.TOTAL_VALUE IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SETTLEMENT_VALUE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SHIPPING_METHOD_ID IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SHIPPING_METHOD IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SEND_TYPE_CHILD_ID IS '????????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SEND_TYPE_CHILD_NAME IS '????????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.RECEIVER_NAME IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.RECEIVER_TEL IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.RECEIVER_FAX IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.RECEIVER_ADDRESS IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.REMARK IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.BILL_STATUS IS '????(0:??,1:???,2:????,3:??,4:?????)';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.STATUS_DESC IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.CREATE_ID IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.CREATE_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.CREATE_DATE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.CREATE_ORG_ID IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.UPDATE_ID IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.UPDATE_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.UPDATE_DATE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.AUDIT_ID IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.AUDIT_DATE IS '???????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.AUDIT_MESSAGE IS '???????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.AUDIT_NAME IS '????(0:????1:??)';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.BILL_NO IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.STATUS IS '????:0:???,1:????,2:???';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.IS_SALE IS '????????0???????1?????2??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.INBOUND_ENABLE IS '????????? 1??2???';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.DRAWER_ORG_ID IS '???orgid';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.DRAWER_ORG_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.VOUCHER_NO IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SAP_ERROR_MSG IS 'SAP???????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SAP_STATUS IS 'SAP???? 0???,1????????,2????????,3??????,4??????,5 ???????? 6???????? 7?????????8????????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SUBMIT_DATE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.ATTACH_NAME IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.COUNTRY IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.MODEL IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.BUY_PLAN_ORDER IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SAP_BILL_NO IS 'SAP?????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.ORDER_TYPE IS '???????basic_data_dictionary.CODE = CGDDLX';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PURCHASE_ORD_TYPE IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PURCHASE_ORD_TYPE_DESC IS '????????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PRINT_STATE IS '?????? 0???1????2???';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SEND_STATUS IS '??????? 0???1???2???';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.DELIVERY_ORG_ID IS '???orgid';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.DELIVERY_ORG_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SOLD_ORG_ID IS '???orgid';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SOLD_ORG_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SAP_IN_AREA IS 'sap????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.ADDRESS_CODE IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.APPLICATION_NO IS '?????CRM?';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.SERVICE_NO IS '?????CRM?';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.NOTIFICATION_NO IS '???????CRM?';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.APPLICATION_TIME IS '????(CRM)';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.DEVICE_NO IS '????(CRM)';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.APPLICATION_QTY IS '????(CRM)';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.APPLICATION_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PURCHASE_AUDIT_STATUS IS '??????(0????1?????2?????)';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PURCHASE_AUDIT_ID IS '???ID';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PURCHASE_AUDIT_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PURCHASE_AUDIT_TIME IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PURCHASE_AUDIT_ADVICE IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PLANNER_ID IS '???ID';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PLANNER_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PRODUCT_BILL_NO IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.INSTRUCT_BILL_NO IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.MES_STATUS IS '?????0:????1??????2:????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.WBS_ELEMENT IS 'WBS??';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.PRODUCT_ORDER_DESC IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.BASIC_START_DATE IS '??????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT.BASIC_END_DATE IS '??????';

COMMENT ON TABLE PURCHASE_REQUEST_INPLANT IS '????????';

-- ----------------------------
-- Table structure for PURCHASE_REQUEST_INPLANT_IN
-- ----------------------------
CREATE TABLE PURCHASE_REQUEST_INPLANT_IN (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
PUR_IN_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATE_USER VARCHAR2(30 CHAR) VISIBLE,
CREATE_DEPT VARCHAR2(30 CHAR) VISIBLE,
CREATE_TIME DATE VISIBLE,
WAREHOUSE_CODE VARCHAR2(30 CHAR) VISIBLE,
IN_AREA VARCHAR2(30 CHAR) VISIBLE,
REMARK VARCHAR2(300 CHAR) VISIBLE,
MES_STATE VARCHAR2(10 BYTE) VISIBLE,
IN_STATE VARCHAR2(10 BYTE) VISIBLE,
DELIVERY_NO VARCHAR2(30 CHAR) VISIBLE,
UPDATE_TIME DATE VISIBLE,
CREATE_USER_ID VARCHAR2(30 CHAR) VISIBLE,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
IS_DEL CHAR(1 BYTE) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.ID IS '主键';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.PUR_IN_NO IS '厂内采购入库单号';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.CREATE_USER IS '???';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.CREATE_DEPT IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.CREATE_TIME IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.WAREHOUSE_CODE IS '???? ';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.IN_AREA IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.REMARK IS '??';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.MES_STATE IS 'MES??(???????)';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.IN_STATE IS '????? NU ????ING ?????ALL ?????CLOSE ????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.DELIVERY_NO IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.UPDATE_TIME IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.CREATE_USER_ID IS '???ID';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.ORG_ID IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_INPLANT_IN.IS_DEL IS '???? 0 ?';

COMMENT ON TABLE PURCHASE_REQUEST_INPLANT_IN IS '???????';

-- ----------------------------
-- Table structure for PURCHASE_REQUEST_LOG
-- ----------------------------
CREATE TABLE PURCHASE_REQUEST_LOG (
ID VARCHAR2(20 CHAR) VISIBLE NOT NULL,
BILL_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
BILL_NO VARCHAR2(20 BYTE) VISIBLE NOT NULL,
OPERATION_NAME VARCHAR2(200 CHAR) VISIBLE,
OPERATION_TIME DATE VISIBLE,
MESSAGE VARCHAR2(2000 CHAR) VISIBLE
);

COMMENT ON COLUMN PURCHASE_REQUEST_LOG.BILL_ID IS '单据id';

COMMENT ON COLUMN PURCHASE_REQUEST_LOG.BILL_NO IS '单据编号';

COMMENT ON COLUMN PURCHASE_REQUEST_LOG.OPERATION_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_REQUEST_LOG.OPERATION_TIME IS '????';

COMMENT ON COLUMN PURCHASE_REQUEST_LOG.MESSAGE IS '????';

COMMENT ON TABLE PURCHASE_REQUEST_LOG IS '?????';

-- ----------------------------
-- Table structure for PURCHASE_RETURN
-- ----------------------------
CREATE TABLE PURCHASE_RETURN (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
RETURN_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
PURCHASE_BILL_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
PURCHASE_BILL_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
SUPPLIER_ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
SUPPLIER_NAME VARCHAR2(200 BYTE) VISIBLE,
STATUS NUMBER(1,0) VISIBLE NOT NULL,
DELETE_FLAG NUMBER(1,0) VISIBLE DEFAULT 0 ,
PURCHASE_TYPE NUMBER(1,0) VISIBLE DEFAULT 0 ,
TOTAL_AMOUNT NUMBER(22,3) VISIBLE DEFAULT 0 ,
OUTBOUND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
AUDIT_ID VARCHAR2(20 BYTE) VISIBLE,
AUDIT_NAME VARCHAR2(50 BYTE) VISIBLE,
AUDIT_TIME DATE VISIBLE,
AUDIT_ADVICE VARCHAR2(1000 BYTE) VISIBLE,
REMARK VARCHAR2(1000 BYTE) VISIBLE,
CREATOR_ID VARCHAR2(30 BYTE) VISIBLE,
CREATOR_NAME VARCHAR2(50 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE,
MODIFIER_ID VARCHAR2(30 BYTE) VISIBLE,
MODIFIER_NAME VARCHAR2(50 BYTE) VISIBLE,
MODIFY_TIME DATE VISIBLE,
DELETE_ID VARCHAR2(30 BYTE) VISIBLE,
DELETE_NAME VARCHAR2(50 BYTE) VISIBLE,
DELETE_TIME DATE VISIBLE,
WAREHOUSE_CODE VARCHAR2(36 BYTE) VISIBLE,
ORG_ID VARCHAR2(30 BYTE) VISIBLE,
DELIVERY_TYPE_ID VARCHAR2(20 BYTE) VISIBLE,
DELIVERY_TYPE_NAME VARCHAR2(50 BYTE) VISIBLE,
RECEIVER_NAME VARCHAR2(20 BYTE) VISIBLE,
RECEIVER_PHONE VARCHAR2(20 BYTE) VISIBLE,
RECEIVER_FAX VARCHAR2(20 BYTE) VISIBLE,
RECEIVER_ADDRESS VARCHAR2(200 BYTE) VISIBLE,
SEND_TYPE_CHILD_ID VARCHAR2(20 BYTE) VISIBLE,
SEND_TYPE_CHILD_NAME VARCHAR2(32 BYTE) VISIBLE,
RETURN_REASON_CODE VARCHAR2(20 BYTE) VISIBLE,
RETURN_REASON_NAME VARCHAR2(100 BYTE) VISIBLE,
RETURN_CATEGORY_CODE VARCHAR2(20 BYTE) VISIBLE,
RETURN_CATEGORY_NAME VARCHAR2(100 BYTE) VISIBLE
);

COMMENT ON COLUMN PURCHASE_RETURN.ID IS '采购退货ID';

COMMENT ON COLUMN PURCHASE_RETURN.RETURN_NO IS '采购退货单号';

COMMENT ON COLUMN PURCHASE_RETURN.PURCHASE_BILL_ID IS '采购订单ID';

COMMENT ON COLUMN PURCHASE_RETURN.PURCHASE_BILL_NO IS '采购订单号';

COMMENT ON COLUMN PURCHASE_RETURN.SUPPLIER_ORG_ID IS '供应商编码';

COMMENT ON COLUMN PURCHASE_RETURN.SUPPLIER_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_RETURN.STATUS IS '退货单状态(0待审核；1审核通过；2审核未通过)';

COMMENT ON COLUMN PURCHASE_RETURN.DELETE_FLAG IS '????(0??1?)';

COMMENT ON COLUMN PURCHASE_RETURN.PURCHASE_TYPE IS '????(0?????1????)';

COMMENT ON COLUMN PURCHASE_RETURN.TOTAL_AMOUNT IS '???';

COMMENT ON COLUMN PURCHASE_RETURN.OUTBOUND_STATUS IS '?????0?????1:????';

COMMENT ON COLUMN PURCHASE_RETURN.AUDIT_ID IS '???ID';

COMMENT ON COLUMN PURCHASE_RETURN.AUDIT_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_RETURN.AUDIT_TIME IS '????';

COMMENT ON COLUMN PURCHASE_RETURN.AUDIT_ADVICE IS '????';

COMMENT ON COLUMN PURCHASE_RETURN.REMARK IS '??';

COMMENT ON COLUMN PURCHASE_RETURN.CREATOR_ID IS '???ID';

COMMENT ON COLUMN PURCHASE_RETURN.CREATOR_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_RETURN.CREATE_TIME IS '????';

COMMENT ON COLUMN PURCHASE_RETURN.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN PURCHASE_RETURN.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_RETURN.MODIFY_TIME IS '????';

COMMENT ON COLUMN PURCHASE_RETURN.DELETE_ID IS '???ID';

COMMENT ON COLUMN PURCHASE_RETURN.DELETE_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_RETURN.DELETE_TIME IS '????';

COMMENT ON COLUMN PURCHASE_RETURN.WAREHOUSE_CODE IS '????';

COMMENT ON COLUMN PURCHASE_RETURN.ORG_ID IS '??orgId';

COMMENT ON COLUMN PURCHASE_RETURN.DELIVERY_TYPE_ID IS '????';

COMMENT ON COLUMN PURCHASE_RETURN.DELIVERY_TYPE_NAME IS '??????';

COMMENT ON COLUMN PURCHASE_RETURN.RECEIVER_NAME IS '???';

COMMENT ON COLUMN PURCHASE_RETURN.RECEIVER_PHONE IS '????';

COMMENT ON COLUMN PURCHASE_RETURN.RECEIVER_FAX IS '??';

COMMENT ON COLUMN PURCHASE_RETURN.RECEIVER_ADDRESS IS '??';

COMMENT ON COLUMN PURCHASE_RETURN.SEND_TYPE_CHILD_ID IS '????????';

COMMENT ON COLUMN PURCHASE_RETURN.SEND_TYPE_CHILD_NAME IS '????????';

COMMENT ON COLUMN PURCHASE_RETURN.RETURN_REASON_CODE IS '????code';

COMMENT ON COLUMN PURCHASE_RETURN.RETURN_REASON_NAME IS '??????';

COMMENT ON COLUMN PURCHASE_RETURN.RETURN_CATEGORY_CODE IS '????code';

COMMENT ON COLUMN PURCHASE_RETURN.RETURN_CATEGORY_NAME IS '??????';

COMMENT ON TABLE PURCHASE_RETURN IS '??????';

-- ----------------------------
-- Table structure for PURCHASE_RETURN_DETAIL
-- ----------------------------
CREATE TABLE PURCHASE_RETURN_DETAIL (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
RETURN_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
MATERIAL_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
MATERIAL_DESC VARCHAR2(255 BYTE) VISIBLE,
UNIT VARCHAR2(30 BYTE) VISIBLE,
PRICE NUMBER(15,3) VISIBLE DEFAULT 0 ,
RETURN_QTY NUMBER(15,3) VISIBLE DEFAULT 0 ,
AMOUNT NUMBER(15,3) VISIBLE DEFAULT 0 ,
REAL_QTY NUMBER(15,3) VISIBLE DEFAULT 0  ,
REMARK VARCHAR2(300 BYTE) VISIBLE,
DELIVERY_DATE TIMESTAMP(6) VISIBLE,
RETURN_OUTBOUND_QTY NUMBER(15,3) VISIBLE DEFAULT 0  ,
RETURN_OUTBOUND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN PURCHASE_RETURN_DETAIL.ID IS '代理商退货详情表ID';

COMMENT ON COLUMN PURCHASE_RETURN_DETAIL.RETURN_ID IS '采购退货单号';

COMMENT ON COLUMN PURCHASE_RETURN_DETAIL.MATERIAL_NO IS '物料编码';

COMMENT ON COLUMN PURCHASE_RETURN_DETAIL.MATERIAL_DESC IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_DETAIL.UNIT IS '??';

COMMENT ON COLUMN PURCHASE_RETURN_DETAIL.PRICE IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_DETAIL.RETURN_QTY IS '??????';

COMMENT ON COLUMN PURCHASE_RETURN_DETAIL.AMOUNT IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_DETAIL.REAL_QTY IS '??????';

COMMENT ON COLUMN PURCHASE_RETURN_DETAIL.REMARK IS '??';

COMMENT ON COLUMN PURCHASE_RETURN_DETAIL.DELIVERY_DATE IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_DETAIL.RETURN_OUTBOUND_QTY IS '????????';

COMMENT ON COLUMN PURCHASE_RETURN_DETAIL.RETURN_OUTBOUND_STATUS IS '???????0????1?????2?????';

COMMENT ON TABLE PURCHASE_RETURN_DETAIL IS '???????';

-- ----------------------------
-- Table structure for PURCHASE_RETURN_OUT
-- ----------------------------
CREATE TABLE PURCHASE_RETURN_OUT (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
PURCHASE_RETURN_OUT_NO VARCHAR2(20 BYTE) VISIBLE NOT NULL,
RETURN_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
PURCHASE_BILL_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(30 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
RETURN_TYPE VARCHAR2(200 BYTE) VISIBLE,
OUT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
DEPT_ID VARCHAR2(30 BYTE) VISIBLE,
DEPT_NAME VARCHAR2(30 BYTE) VISIBLE,
REMARK VARCHAR2(1000 BYTE) VISIBLE,
CREATOR_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 BYTE) VISIBLE,
MODIFIER_NAME VARCHAR2(50 BYTE) VISIBLE,
MODIFY_TIME DATE VISIBLE,
OUT_LOCATION VARCHAR2(50 BYTE) VISIBLE,
OUT_AREA VARCHAR2(50 BYTE) VISIBLE,
TOTAL_AMOUNT NUMBER(22,3) VISIBLE DEFAULT 0   ,
DELIVERY_TYPE_ID VARCHAR2(20 BYTE) VISIBLE,
DELIVERY_TYPE_NAME VARCHAR2(50 BYTE) VISIBLE,
SETTLE_TYPE_ID VARCHAR2(20 BYTE) VISIBLE,
SETTLE_TYPE_NAME VARCHAR2(50 BYTE) VISIBLE,
RECEIVER_NAME VARCHAR2(20 BYTE) VISIBLE,
RECEIVER_PHONE VARCHAR2(20 BYTE) VISIBLE,
RECEIVER_FAX VARCHAR2(20 BYTE) VISIBLE,
RECEIVER_ADDRESS VARCHAR2(200 BYTE) VISIBLE,
SEND_TYPE_CHILD_ID VARCHAR2(20 BYTE) VISIBLE,
SEND_TYPE_CHILD_NAME VARCHAR2(32 BYTE) VISIBLE,
POST_STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
SUPPLIER_ORG_ID VARCHAR2(30 BYTE) VISIBLE,
SUPPLIER_NAME VARCHAR2(100 BYTE) VISIBLE
);

COMMENT ON COLUMN PURCHASE_RETURN_OUT.ID IS '主键ID';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.PURCHASE_RETURN_OUT_NO IS '退货出库单号';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.RETURN_NO IS '采购退货单号';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.PURCHASE_BILL_NO IS '采购订单号';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.ORG_ID IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.IS_DEL IS '删除标记(0否；1是)';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.RETURN_TYPE IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.OUT_STATUS IS '出库状态(0:未出库,1:正在出库,2:已出库,3:强制结单)';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.DEPT_ID IS '????ID';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.DEPT_NAME IS '??????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.REMARK IS '??';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.CREATOR_ID IS '创建人ID';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.CREATOR_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.MODIFY_TIME IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.OUT_LOCATION IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.OUT_AREA IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.TOTAL_AMOUNT IS '???';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.DELIVERY_TYPE_ID IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.DELIVERY_TYPE_NAME IS '??????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.SETTLE_TYPE_ID IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.SETTLE_TYPE_NAME IS '??????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.RECEIVER_NAME IS '???';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.RECEIVER_PHONE IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.RECEIVER_FAX IS '??';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.RECEIVER_ADDRESS IS '??';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.SEND_TYPE_CHILD_ID IS '????????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.SEND_TYPE_CHILD_NAME IS '????????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.POST_STATUS IS '???? 0???1????2???';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.SUPPLIER_ORG_ID IS '?????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT.SUPPLIER_NAME IS '?????';

COMMENT ON TABLE PURCHASE_RETURN_OUT IS '?????';

-- ----------------------------
-- Table structure for PURCHASE_RETURN_OUT_DETAIL
-- ----------------------------
CREATE TABLE PURCHASE_RETURN_OUT_DETAIL (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
PURCHASE_RETURN_OUT_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
MATERIAL_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
MATERIAL_DESC VARCHAR2(255 BYTE) VISIBLE,
UNIT VARCHAR2(30 BYTE) VISIBLE,
PRICE NUMBER(15,3) VISIBLE DEFAULT 0   NOT NULL,
QTY NUMBER(15,3) VISIBLE DEFAULT 0   NOT NULL,
OUT_QTY NUMBER(15,3) VISIBLE DEFAULT 0 ,
DELIVERY_QTY NUMBER(15,3) VISIBLE DEFAULT 0  ,
PACK_NUMBER NUMBER(15,3) VISIBLE,
OUT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
REAL_OUT_QTY NUMBER(15,3) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN PURCHASE_RETURN_OUT_DETAIL.ID IS '主键ID';

COMMENT ON COLUMN PURCHASE_RETURN_OUT_DETAIL.PURCHASE_RETURN_OUT_NO IS '退货出库单号';

COMMENT ON COLUMN PURCHASE_RETURN_OUT_DETAIL.MATERIAL_NO IS '物料编码';

COMMENT ON COLUMN PURCHASE_RETURN_OUT_DETAIL.MATERIAL_DESC IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT_DETAIL.UNIT IS '??';

COMMENT ON COLUMN PURCHASE_RETURN_OUT_DETAIL.PRICE IS '成交单价';

COMMENT ON COLUMN PURCHASE_RETURN_OUT_DETAIL.QTY IS '订单总数';

COMMENT ON COLUMN PURCHASE_RETURN_OUT_DETAIL.OUT_QTY IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT_DETAIL.DELIVERY_QTY IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT_DETAIL.PACK_NUMBER IS '????';

COMMENT ON COLUMN PURCHASE_RETURN_OUT_DETAIL.OUT_STATUS IS '????(0:???,1:????,2:???)';

COMMENT ON COLUMN PURCHASE_RETURN_OUT_DETAIL.REAL_OUT_QTY IS '??????';

COMMENT ON TABLE PURCHASE_RETURN_OUT_DETAIL IS '???????';

-- ----------------------------
-- Table structure for PURCHASE_RETURN_OUT_DETAIL_EXT
-- ----------------------------
CREATE TABLE PURCHASE_RETURN_OUT_DETAIL_EXT (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
INVOICES_ISSUED NUMBER VISIBLE NOT NULL
);

COMMENT ON COLUMN PURCHASE_RETURN_OUT_DETAIL_EXT.INVOICES_ISSUED IS '已开票数量';

COMMENT ON TABLE PURCHASE_RETURN_OUT_DETAIL_EXT IS '//PURCHASE_RETURN_OUT_DETAIL_EXT';

-- ----------------------------
-- Table structure for RATING_CONFIG_TIME
-- ----------------------------
CREATE TABLE RATING_CONFIG_TIME (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
RATING_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
START_TIME DATE VISIBLE,
END_TIME DATE VISIBLE,
TYPE NUMBER(1,0) VISIBLE,
TYPE_DES VARCHAR2(100 CHAR) VISIBLE,
URGENT_ORDER_MAX_QTY NUMBER(6,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN RATING_CONFIG_TIME.ID IS '非业务主键id';

COMMENT ON COLUMN RATING_CONFIG_TIME.RATING_ID IS '评级信息id';

COMMENT ON COLUMN RATING_CONFIG_TIME.START_TIME IS '????';

COMMENT ON COLUMN RATING_CONFIG_TIME.END_TIME IS '????';

COMMENT ON COLUMN RATING_CONFIG_TIME.TYPE IS '类型';

COMMENT ON COLUMN RATING_CONFIG_TIME.TYPE_DES IS '????';

COMMENT ON COLUMN RATING_CONFIG_TIME.URGENT_ORDER_MAX_QTY IS '???????';

COMMENT ON TABLE RATING_CONFIG_TIME IS '????????';

-- ----------------------------
-- Table structure for RATING_INFO
-- ----------------------------
CREATE TABLE RATING_INFO (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
TITLE VARCHAR2(200 CHAR) VISIBLE NOT NULL,
IS_SCORE NUMBER(1,0) VISIBLE DEFAULT 0,
REMARK VARCHAR2(1000 CHAR) VISIBLE,
CREATOR_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 CHAR) VISIBLE,
MODIFIER_NAME VARCHAR2(50 CHAR) VISIBLE,
MODIFY_TIME DATE VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
ORG_ID VARCHAR2(30 BYTE) VISIBLE
);

COMMENT ON COLUMN RATING_INFO.ID IS '非业务主键id';

COMMENT ON COLUMN RATING_INFO.TITLE IS '标题';

COMMENT ON COLUMN RATING_INFO.IS_SCORE IS '?????? 0??1?';

COMMENT ON COLUMN RATING_INFO.REMARK IS '??';

COMMENT ON COLUMN RATING_INFO.CREATOR_ID IS '创建人id';

COMMENT ON COLUMN RATING_INFO.CREATOR_NAME IS '创建人姓名';

COMMENT ON COLUMN RATING_INFO.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN RATING_INFO.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN RATING_INFO.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN RATING_INFO.MODIFY_TIME IS '????';

COMMENT ON COLUMN RATING_INFO.IS_DEL IS '????(0??1?)';

COMMENT ON COLUMN RATING_INFO.ORG_ID IS '??orgId';

COMMENT ON TABLE RATING_INFO IS '?????';

-- ----------------------------
-- Table structure for RECEIPT_IN
-- ----------------------------
CREATE TABLE RECEIPT_IN (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
BILL_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
RECEIPT_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
WAREHOUSE_CODE VARCHAR2(30 CHAR) VISIBLE NOT NULL,
AREA_CODE VARCHAR2(30 CHAR) VISIBLE,
SUPPLIER_ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SUPPLIER_ORG_NAME VARCHAR2(100 CHAR) VISIBLE NOT NULL,
ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
NOTE VARCHAR2(500 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(100 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
IS_DEL NUMBER VISIBLE DEFAULT 0
);

COMMENT ON COLUMN RECEIPT_IN.ID IS '主键id';

COMMENT ON COLUMN RECEIPT_IN.BILL_NO IS '运单入库单号';

COMMENT ON COLUMN RECEIPT_IN.RECEIPT_NO IS '发运交接单号';

COMMENT ON COLUMN RECEIPT_IN.WAREHOUSE_CODE IS '仓库编码';

COMMENT ON COLUMN RECEIPT_IN.AREA_CODE IS '????';

COMMENT ON COLUMN RECEIPT_IN.SUPPLIER_ORG_ID IS '供应商orgid';

COMMENT ON COLUMN RECEIPT_IN.SUPPLIER_ORG_NAME IS '供应商名称';

COMMENT ON COLUMN RECEIPT_IN.STATUS IS '入库状态 0未入库1部分入库2已入库';

COMMENT ON COLUMN RECEIPT_IN.NOTE IS '??';

COMMENT ON COLUMN RECEIPT_IN.IS_DEL IS '???? 0?1?';

COMMENT ON TABLE RECEIPT_IN IS '?????';

-- ----------------------------
-- Table structure for RECEIPT_IN_DETAIL
-- ----------------------------
CREATE TABLE RECEIPT_IN_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MAIN_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(100 CHAR) VISIBLE NOT NULL,
UNIT VARCHAR2(30 CHAR) VISIBLE NOT NULL,
AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0   NOT NULL,
REAL_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0   NOT NULL,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
NOTE VARCHAR2(255 CHAR) VISIBLE,
MATERIALS_TYPE VARCHAR2(100 CHAR) VISIBLE
);

COMMENT ON COLUMN RECEIPT_IN_DETAIL.ID IS '主键id';

COMMENT ON COLUMN RECEIPT_IN_DETAIL.MAIN_ID IS '主表id';

COMMENT ON COLUMN RECEIPT_IN_DETAIL.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN RECEIPT_IN_DETAIL.MATERIALS_DES IS '物料描述';

COMMENT ON COLUMN RECEIPT_IN_DETAIL.UNIT IS '单位';

COMMENT ON COLUMN RECEIPT_IN_DETAIL.AMOUNT IS '数量';

COMMENT ON COLUMN RECEIPT_IN_DETAIL.REAL_AMOUNT IS '实际入库数量';

COMMENT ON COLUMN RECEIPT_IN_DETAIL.STATUS IS '入库状态 0未入库1部分入库2已入库';

COMMENT ON COLUMN RECEIPT_IN_DETAIL.NOTE IS '??';

COMMENT ON COLUMN RECEIPT_IN_DETAIL.MATERIALS_TYPE IS '????';

COMMENT ON TABLE RECEIPT_IN_DETAIL IS '//RECEIPT_IN_DETAIL';

-- ----------------------------
-- Table structure for RECEIVABLE_OVERDUE_DETAIL
-- ----------------------------
CREATE TABLE RECEIVABLE_OVERDUE_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SCORE_INFO_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ONE_RETURN_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
ONE_ACTUAL_PAYMENT NUMBER(22,3) VISIBLE DEFAULT 0,
ONE_REAL_ACCOUNT NUMBER(22,3) VISIBLE DEFAULT 0,
TWO_RETURN_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
TWO_ACTUAL_PAYMENT NUMBER(22,3) VISIBLE DEFAULT 0,
TWO_REAL_ACCOUNT NUMBER(22,3) VISIBLE DEFAULT 0,
THREE_RETURN_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
THREE_ACTUAL_PAYMENT NUMBER(22,3) VISIBLE DEFAULT 0,
THREE_REAL_ACCOUNT NUMBER(22,3) VISIBLE DEFAULT 0,
SCORE NUMBER(6,0) VISIBLE DEFAULT 0,
CREATOR_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 CHAR) VISIBLE,
MODIFIER_NAME VARCHAR2(50 CHAR) VISIBLE,
MODIFY_TIME DATE VISIBLE
);

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.ID IS '非业务主键id';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.SCORE_INFO_ID IS '评分信息id';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.ONE_RETURN_TARGET IS '???????';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.ONE_ACTUAL_PAYMENT IS '???????';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.ONE_REAL_ACCOUNT IS '?????';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.TWO_RETURN_TARGET IS '???????';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.TWO_ACTUAL_PAYMENT IS '???????';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.TWO_REAL_ACCOUNT IS '?????';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.THREE_RETURN_TARGET IS '???????';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.THREE_ACTUAL_PAYMENT IS '???????';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.THREE_REAL_ACCOUNT IS '?????';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.SCORE IS '??';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.CREATOR_ID IS '创建人id';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.CREATOR_NAME IS '创建人姓名';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN RECEIVABLE_OVERDUE_DETAIL.MODIFY_TIME IS '????';

COMMENT ON TABLE RECEIVABLE_OVERDUE_DETAIL IS '????????';

-- ----------------------------
-- Table structure for RECEIVE_STOCK_LIST
-- ----------------------------
CREATE TABLE RECEIVE_STOCK_LIST (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
STOCK_LIST_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CRM_NO VARCHAR2(30 BYTE) VISIBLE,
SPARE_PART_ORDER VARCHAR2(30 BYTE) VISIBLE,
VIN_CODE VARCHAR2(90 BYTE) VISIBLE,
MATERIAL_NO VARCHAR2(30 BYTE) VISIBLE,
MATERIAL_DESC VARCHAR2(200 BYTE) VISIBLE,
IN_LOCATION VARCHAR2(50 BYTE) VISIBLE,
IN_STATUS NUMBER(1,0) VISIBLE,
AMOUNT NUMBER(10,0) VISIBLE,
RECEIVE_AMOUNT NUMBER(10,0) VISIBLE,
CREATE_TIME DATE VISIBLE NOT NULL,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_TIME DATE VISIBLE NOT NULL,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
SERVICE_STAFF VARCHAR2(30 BYTE) VISIBLE NOT NULL,
PRINCIPAL VARCHAR2(30 BYTE) VISIBLE NOT NULL,
REJECT_REASON VARCHAR2(1000 BYTE) VISIBLE,
REMARK VARCHAR2(1000 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE,
ORG_ID VARCHAR2(30 BYTE) VISIBLE,
IN_LOCATION_DESC VARCHAR2(400 BYTE) VISIBLE,
TAKE_IN_WAREHOUSE VARCHAR2(36 BYTE) VISIBLE,
TAKE_IN_WAREHOUSE_AREA VARCHAR2(36 BYTE) VISIBLE,
IS_REJECT VARCHAR2(1 BYTE) VISIBLE,
IS_SYN NUMBER(10,0) VISIBLE DEFAULT 0
,
LATEST_IN_TIME TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN RECEIVE_STOCK_LIST.ID IS '主键ID';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.STOCK_LIST_NO IS '领用转库存单号';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.CRM_NO IS 'CRM??';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.SPARE_PART_ORDER IS '?????';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.VIN_CODE IS '???';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.MATERIAL_NO IS '????';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.MATERIAL_DESC IS '????';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.IN_LOCATION IS '????';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.IN_STATUS IS '????';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.AMOUNT IS '??';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.RECEIVE_AMOUNT IS '????';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.CREATE_ID IS '???';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.UPDATE_TIME IS '更新时间';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.UPDATE_ID IS '???';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.SERVICE_STAFF IS '服务人员';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.PRINCIPAL IS '负责人';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.REJECT_REASON IS '????';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.REMARK IS '??';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.IS_DEL IS '????(0 ??? 1 ???)';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.ORG_ID IS '????';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.IN_LOCATION_DESC IS '????';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.TAKE_IN_WAREHOUSE IS '????';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.TAKE_IN_WAREHOUSE_AREA IS '????';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.IS_REJECT IS '?????1???? 2??';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.IS_SYN IS '????CRM(??CRM????????)  ????1';

COMMENT ON COLUMN RECEIVE_STOCK_LIST.LATEST_IN_TIME IS '????????????????????????????';

COMMENT ON TABLE RECEIVE_STOCK_LIST IS '??????';

-- ----------------------------
-- Table structure for RECEIVER_ADDRESS
-- ----------------------------
CREATE TABLE RECEIVER_ADDRESS (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
RECEIVER_NAME VARCHAR2(20 CHAR) VISIBLE,
RECEIVER_TEL VARCHAR2(20 CHAR) VISIBLE,
RECEIVER_ADDRESS VARCHAR2(500 CHAR) VISIBLE
);

COMMENT ON COLUMN RECEIVER_ADDRESS.ID IS '主键';

COMMENT ON COLUMN RECEIVER_ADDRESS.ORG_ID IS '企业编号';

COMMENT ON COLUMN RECEIVER_ADDRESS.RECEIVER_NAME IS '???';

COMMENT ON COLUMN RECEIVER_ADDRESS.RECEIVER_TEL IS '????';

COMMENT ON COLUMN RECEIVER_ADDRESS.RECEIVER_ADDRESS IS '??';

COMMENT ON TABLE RECEIVER_ADDRESS IS '?????';

-- ----------------------------
-- Table structure for REGION_ALLOT
-- ----------------------------
CREATE TABLE REGION_ALLOT (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ALLOT_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
IN_LOCATION VARCHAR2(30 CHAR) VISIBLE NOT NULL,
OUT_LOCATION VARCHAR2(30 CHAR) VISIBLE NOT NULL,
IN_STATE NUMBER(1,0) VISIBLE,
OUT_STATE NUMBER(1,0) VISIBLE,
MOVE_TYPE VARCHAR2(10 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
DEPT VARCHAR2(50 CHAR) VISIBLE,
IS_SYN_SAP NUMBER(1,0) VISIBLE DEFAULT 0  ,
SAP_IN_ORDER VARCHAR2(30 CHAR) VISIBLE,
SAP_OUT_ORDER VARCHAR2(30 CHAR) VISIBLE,
ORGID VARCHAR2(30 CHAR) VISIBLE,
DEPT_ID VARCHAR2(30 CHAR) VISIBLE,
VOUCHER_IN_NO VARCHAR2(60 BYTE) VISIBLE,
VOUCHER_OUT_NO VARCHAR2(60 BYTE) VISIBLE,
SAP_ERROR_MSG VARCHAR2(500 CHAR) VISIBLE,
IN_AREA VARCHAR2(60 BYTE) VISIBLE,
OUT_AREA VARCHAR2(60 BYTE) VISIBLE,
SAP_IN_AREA VARCHAR2(100 BYTE) VISIBLE,
SAP_OUT_AREA VARCHAR2(100 BYTE) VISIBLE,
BILL_STATUS VARCHAR2(50 CHAR) VISIBLE DEFAULT '2'  NOT NULL,
STATUS_DESC VARCHAR2(50 CHAR) VISIBLE DEFAULT '????'  ,
AUDIT_ID VARCHAR2(20 BYTE) VISIBLE,
AUDIT_DATE DATE VISIBLE,
AUDIT_MESSAGE VARCHAR2(200 CHAR) VISIBLE,
AUDIT_NAME VARCHAR2(20 CHAR) VISIBLE,
DISPATCHER_ID VARCHAR2(20 BYTE) VISIBLE,
DISPATCHER_NAME VARCHAR2(200 CHAR) VISIBLE,
CRM_ORDER VARCHAR2(50 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
RECEIVE_USER VARCHAR2(30 CHAR) VISIBLE,
RECEIVE_TEL VARCHAR2(15 CHAR) VISIBLE,
RECEIVE_ADDRESS VARCHAR2(200 CHAR) VISIBLE,
POST_OUT_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
POST_IN_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
ALLOT_PLAN_ID VARCHAR2(30 CHAR) VISIBLE,
ALLOT_PLAN_ORDER VARCHAR2(30 CHAR) VISIBLE,
THREE_REVERSE_ID VARCHAR2(50 BYTE) VISIBLE,
SERVICE_INFORMATION_CODE VARCHAR2(50 BYTE) VISIBLE,
THREE_REVERSE_TYPE VARCHAR2(50 BYTE) VISIBLE,
ALLOT_TYPE NUMBER(1,0) VISIBLE,
PMS_CODE VARCHAR2(50 BYTE) VISIBLE,
SALE_TIME TIMESTAMP(6) VISIBLE,
PRINT_NUM NUMBER VISIBLE DEFAULT 0
,
SYNC_CRM_FLAG VARCHAR2(4 BYTE) VISIBLE,
SYNC_CRM_MSG VARCHAR2(3000 BYTE) VISIBLE,
ALL_OUTBOUND_TIME TIMESTAMP(6) VISIBLE,
ALL_INBOUND_TIME TIMESTAMP(6) VISIBLE,
LATEST_IN_DATE TIMESTAMP(6) VISIBLE,
LATEST_OUT_DATE TIMESTAMP(6) VISIBLE,
SYNC_SF_FLAG VARCHAR2(4 BYTE) VISIBLE,
SYNC_SF_MSG VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN REGION_ALLOT.ID IS '唯一标识';

COMMENT ON COLUMN REGION_ALLOT.ALLOT_ORDER IS '调拨单号';

COMMENT ON COLUMN REGION_ALLOT.IN_LOCATION IS '调入库位';

COMMENT ON COLUMN REGION_ALLOT.OUT_LOCATION IS '调出库位';

COMMENT ON COLUMN REGION_ALLOT.IN_STATE IS '????  0???1????2???';

COMMENT ON COLUMN REGION_ALLOT.OUT_STATE IS '????  0???1????2???';

COMMENT ON COLUMN REGION_ALLOT.MOVE_TYPE IS '????  ??311';

COMMENT ON COLUMN REGION_ALLOT.CREATE_ID IS '???id';

COMMENT ON COLUMN REGION_ALLOT.CREATE_NAME IS '?????';

COMMENT ON COLUMN REGION_ALLOT.CREATE_DATE IS '????';

COMMENT ON COLUMN REGION_ALLOT.DEPT IS '?????';

COMMENT ON COLUMN REGION_ALLOT.IS_SYN_SAP IS '?????sap 0?1?';

COMMENT ON COLUMN REGION_ALLOT.SAP_IN_ORDER IS 'sap??????';

COMMENT ON COLUMN REGION_ALLOT.SAP_OUT_ORDER IS 'sap??????';

COMMENT ON COLUMN REGION_ALLOT.DEPT_ID IS '?????id';

COMMENT ON COLUMN REGION_ALLOT.VOUCHER_IN_NO IS '?????????';

COMMENT ON COLUMN REGION_ALLOT.VOUCHER_OUT_NO IS '?????????';

COMMENT ON COLUMN REGION_ALLOT.SAP_ERROR_MSG IS '????????????';

COMMENT ON COLUMN REGION_ALLOT.IN_AREA IS '????';

COMMENT ON COLUMN REGION_ALLOT.OUT_AREA IS '????';

COMMENT ON COLUMN REGION_ALLOT.SAP_IN_AREA IS 'sap??????';

COMMENT ON COLUMN REGION_ALLOT.SAP_OUT_AREA IS 'sap??????';

COMMENT ON COLUMN REGION_ALLOT.BILL_STATUS IS '单据状态';

COMMENT ON COLUMN REGION_ALLOT.STATUS_DESC IS '??????';

COMMENT ON COLUMN REGION_ALLOT.AUDIT_ID IS '???Id';

COMMENT ON COLUMN REGION_ALLOT.AUDIT_DATE IS '????';

COMMENT ON COLUMN REGION_ALLOT.AUDIT_MESSAGE IS '????';

COMMENT ON COLUMN REGION_ALLOT.AUDIT_NAME IS '?????';

COMMENT ON COLUMN REGION_ALLOT.DISPATCHER_ID IS '???id';

COMMENT ON COLUMN REGION_ALLOT.DISPATCHER_NAME IS '?????';

COMMENT ON COLUMN REGION_ALLOT.CRM_ORDER IS 'crm??';

COMMENT ON COLUMN REGION_ALLOT.IS_DEL IS '????';

COMMENT ON COLUMN REGION_ALLOT.RECEIVE_USER IS '???';

COMMENT ON COLUMN REGION_ALLOT.RECEIVE_TEL IS '????';

COMMENT ON COLUMN REGION_ALLOT.RECEIVE_ADDRESS IS '????';

COMMENT ON COLUMN REGION_ALLOT.POST_OUT_STATUS IS '?????? 0???1????2???';

COMMENT ON COLUMN REGION_ALLOT.POST_IN_STATUS IS '?????? 0???1????2???';

COMMENT ON COLUMN REGION_ALLOT.ALLOT_PLAN_ID IS '??????ID';

COMMENT ON COLUMN REGION_ALLOT.ALLOT_PLAN_ORDER IS '????????';

COMMENT ON COLUMN REGION_ALLOT.ALLOT_TYPE IS '1?????????2?????3???????4???????5?????6???';

COMMENT ON COLUMN REGION_ALLOT.PMS_CODE IS 'PMS???';

COMMENT ON COLUMN REGION_ALLOT.SALE_TIME IS '????';

COMMENT ON COLUMN REGION_ALLOT.PRINT_NUM IS '????';

COMMENT ON COLUMN REGION_ALLOT.SYNC_CRM_FLAG IS '??crm?? 0??? 1???? 2????';

COMMENT ON COLUMN REGION_ALLOT.SYNC_CRM_MSG IS '??CRM??';

COMMENT ON COLUMN REGION_ALLOT.ALL_OUTBOUND_TIME IS '?????????';

COMMENT ON COLUMN REGION_ALLOT.ALL_INBOUND_TIME IS '?????????';

COMMENT ON COLUMN REGION_ALLOT.LATEST_IN_DATE IS '??????';

COMMENT ON COLUMN REGION_ALLOT.LATEST_OUT_DATE IS '??????';

COMMENT ON COLUMN REGION_ALLOT.SYNC_SF_FLAG IS '??????';

COMMENT ON COLUMN REGION_ALLOT.SYNC_SF_MSG IS '??????';

COMMENT ON TABLE REGION_ALLOT IS '//REGION_ALLOT';

-- ----------------------------
-- Table structure for REGION_ALLOT_DETAIL
-- ----------------------------
CREATE TABLE REGION_ALLOT_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ALLOT_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIAL_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIAL_NAME VARCHAR2(255 CHAR) VISIBLE NOT NULL,
MATERIAL_TYPE VARCHAR2(100 CHAR) VISIBLE,
UNIT VARCHAR2(30 CHAR) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE,
IN_AMOUNT NUMBER(14,3) VISIBLE,
OUT_AMOUNT NUMBER(14,3) VISIBLE,
IN_STATE NUMBER(1,0) VISIBLE,
OUT_STATE NUMBER(1,0) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
ORGID VARCHAR2(30 CHAR) VISIBLE,
PACK_NUMBER NUMBER(14,3) VISIBLE,
REMARK VARCHAR2(300 CHAR) VISIBLE,
POST_OUT_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0,
POST_IN_AMOUNT NUMBER(14,3) VISIBLE DEFAULT 0,
VOUCHER_OUT_NO VARCHAR2(30 CHAR) VISIBLE,
VOUCHER_IN_NO VARCHAR2(30 CHAR) VISIBLE
);

COMMENT ON COLUMN REGION_ALLOT_DETAIL.ID IS '唯一标识';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.ALLOT_ORDER IS '调拨单号';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.MATERIAL_NO IS '物料编号';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.MATERIAL_NAME IS '物料名称';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.MATERIAL_TYPE IS '????';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.UNIT IS '??';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.AMOUNT IS '????';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.IN_AMOUNT IS '?????';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.OUT_AMOUNT IS '?????';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.IN_STATE IS '????  0???1????2???';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.OUT_STATE IS '????  0???1????2???';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.CREATE_ID IS '???id';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.CREATE_NAME IS '?????';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.CREATE_DATE IS '????';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.PACK_NUMBER IS '????';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.REMARK IS '??';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.POST_OUT_AMOUNT IS '??????';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.POST_IN_AMOUNT IS '??????';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.VOUCHER_OUT_NO IS '??????';

COMMENT ON COLUMN REGION_ALLOT_DETAIL.VOUCHER_IN_NO IS '??????';

COMMENT ON TABLE REGION_ALLOT_DETAIL IS '//REGION_ALLOT_DETAIL';

-- ----------------------------
-- Table structure for REGION_ALLOT_DETAIL_EXTEND
-- ----------------------------
CREATE TABLE REGION_ALLOT_DETAIL_EXTEND (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
REG_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ALLOT_ORDER VARCHAR2(30 BYTE) VISIBLE,
DETAIL_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
IN_AREA VARCHAR2(60 BYTE) VISIBLE
);

COMMENT ON COLUMN REGION_ALLOT_DETAIL_EXTEND.ID IS '主键';

COMMENT ON COLUMN REGION_ALLOT_DETAIL_EXTEND.REG_ID IS '区域调拨主键';

COMMENT ON COLUMN REGION_ALLOT_DETAIL_EXTEND.ALLOT_ORDER IS '??????';

COMMENT ON COLUMN REGION_ALLOT_DETAIL_EXTEND.DETAIL_ID IS '区域调拨详情主键';

COMMENT ON COLUMN REGION_ALLOT_DETAIL_EXTEND.IN_AREA IS '????';

COMMENT ON TABLE REGION_ALLOT_DETAIL_EXTEND IS '??????????';

-- ----------------------------
-- Table structure for REGION_ALLOT_EXTEND
-- ----------------------------
CREATE TABLE REGION_ALLOT_EXTEND (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
REG_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ALLOT_ORDER VARCHAR2(30 BYTE) VISIBLE,
REG_TYPE_ID VARCHAR2(30 BYTE) VISIBLE,
REG_TYPE_NAME VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN REGION_ALLOT_EXTEND.ID IS '主键';

COMMENT ON COLUMN REGION_ALLOT_EXTEND.REG_ID IS '区域调拨主键';

COMMENT ON COLUMN REGION_ALLOT_EXTEND.ALLOT_ORDER IS '??????';

COMMENT ON COLUMN REGION_ALLOT_EXTEND.REG_TYPE_ID IS '????ID';

COMMENT ON COLUMN REGION_ALLOT_EXTEND.REG_TYPE_NAME IS '??????';

COMMENT ON TABLE REGION_ALLOT_EXTEND IS '?????????';

-- ----------------------------
-- Table structure for REGION_ALLOT_PLAN
-- ----------------------------
CREATE TABLE REGION_ALLOT_PLAN (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ALLOT_PLAN_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MOVE_TYPE VARCHAR2(10 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
DEPT VARCHAR2(30 CHAR) VISIBLE,
DEPT_ID VARCHAR2(30 CHAR) VISIBLE,
IN_WAREHOUSE VARCHAR2(30 CHAR) VISIBLE,
OUT_WAREHOUSE VARCHAR2(30 CHAR) VISIBLE,
IN_WAREHOUSE_DESC VARCHAR2(200 CHAR) VISIBLE,
OUT_WAREHOUSE_DESC VARCHAR2(200 CHAR) VISIBLE,
DISPATCHER_ID VARCHAR2(20 BYTE) VISIBLE,
DISPATCHER_NAME VARCHAR2(200 CHAR) VISIBLE,
RECEIVE_USER VARCHAR2(30 CHAR) VISIBLE,
RECEIVE_TEL VARCHAR2(15 CHAR) VISIBLE,
RECEIVE_ADDRESS VARCHAR2(200 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
PLAN_STATUS NUMBER(2,0) VISIBLE,
CRM_ORDER VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN REGION_ALLOT_PLAN.ID IS '唯一标识';

COMMENT ON COLUMN REGION_ALLOT_PLAN.ALLOT_PLAN_ORDER IS '调拨单申请编号';

COMMENT ON COLUMN REGION_ALLOT_PLAN.MOVE_TYPE IS '????  ??311';

COMMENT ON COLUMN REGION_ALLOT_PLAN.CREATE_ID IS '???id';

COMMENT ON COLUMN REGION_ALLOT_PLAN.CREATE_NAME IS '?????';

COMMENT ON COLUMN REGION_ALLOT_PLAN.CREATE_DATE IS '????';

COMMENT ON COLUMN REGION_ALLOT_PLAN.ORG_ID IS '??ID';

COMMENT ON COLUMN REGION_ALLOT_PLAN.DEPT IS '?????';

COMMENT ON COLUMN REGION_ALLOT_PLAN.DEPT_ID IS '?????id';

COMMENT ON COLUMN REGION_ALLOT_PLAN.IN_WAREHOUSE IS '????';

COMMENT ON COLUMN REGION_ALLOT_PLAN.OUT_WAREHOUSE IS '????';

COMMENT ON COLUMN REGION_ALLOT_PLAN.IN_WAREHOUSE_DESC IS '??????';

COMMENT ON COLUMN REGION_ALLOT_PLAN.OUT_WAREHOUSE_DESC IS '??????';

COMMENT ON COLUMN REGION_ALLOT_PLAN.DISPATCHER_ID IS '???id';

COMMENT ON COLUMN REGION_ALLOT_PLAN.DISPATCHER_NAME IS '?????';

COMMENT ON COLUMN REGION_ALLOT_PLAN.RECEIVE_USER IS '???';

COMMENT ON COLUMN REGION_ALLOT_PLAN.RECEIVE_TEL IS '????';

COMMENT ON COLUMN REGION_ALLOT_PLAN.RECEIVE_ADDRESS IS '????';

COMMENT ON COLUMN REGION_ALLOT_PLAN.IS_DEL IS '????';

COMMENT ON COLUMN REGION_ALLOT_PLAN.PLAN_STATUS IS '????  0 ???1????2?????3???4???';

COMMENT ON COLUMN REGION_ALLOT_PLAN.CRM_ORDER IS 'crm??';

COMMENT ON TABLE REGION_ALLOT_PLAN IS '???????';

-- ----------------------------
-- Table structure for REGION_ALLOT_PLAN_DETAIL
-- ----------------------------
CREATE TABLE REGION_ALLOT_PLAN_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
HEADER_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ALLOT_PLAN_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIAL_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIAL_NAME VARCHAR2(255 CHAR) VISIBLE,
MATERIAL_TYPE VARCHAR2(100 CHAR) VISIBLE,
UNIT VARCHAR2(30 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
ORG_ID VARCHAR2(30 CHAR) VISIBLE,
REMARK VARCHAR2(300 CHAR) VISIBLE,
PLAN_AMOUNT NUMBER(14,3) VISIBLE NOT NULL,
ALLOT_AMOUNT NUMBER(14,3) VISIBLE NOT NULL,
PLAN_STATUS NUMBER(2,0) VISIBLE NOT NULL
);

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.ID IS '唯一标识';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.HEADER_ID IS '主表ID';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.ALLOT_PLAN_ORDER IS '调拨单号';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.MATERIAL_NO IS '物料编号';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.MATERIAL_NAME IS '????';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.MATERIAL_TYPE IS '????';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.UNIT IS '??';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.CREATE_ID IS '???id';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.CREATE_NAME IS '?????';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.CREATE_DATE IS '????';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.ORG_ID IS '??ID';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.REMARK IS '??';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.PLAN_AMOUNT IS '计划调拨数量';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.ALLOT_AMOUNT IS '已执行调拨数量';

COMMENT ON COLUMN REGION_ALLOT_PLAN_DETAIL.PLAN_STATUS IS '计划状态  0 编辑、1已提交、2部分调拨、3结单、4已完成';

COMMENT ON TABLE REGION_ALLOT_PLAN_DETAIL IS '?????????';

-- ----------------------------
-- Table structure for RETURN_MATERIAL
-- ----------------------------
CREATE TABLE RETURN_MATERIAL (
ID VARCHAR2(50 BYTE) VISIBLE NOT NULL,
CODE VARCHAR2(50 BYTE) VISIBLE,
SERVICE_INFORMATION_MEMBER VARCHAR2(30 BYTE) VISIBLE,
CRANT_NO VARCHAR2(100 BYTE) VISIBLE,
WAREHOUSE_OUT VARCHAR2(50 BYTE) VISIBLE,
WAREHOUSE_AREA_OUT VARCHAR2(50 BYTE) VISIBLE,
BORROW_REASON_DESC VARCHAR2(50 BYTE) VISIBLE,
REMARKS VARCHAR2(50 BYTE) VISIBLE,
EXPECTED_ARRIVAL_DATE TIMESTAMP(6) VISIBLE,
FACTORY_NUMBER VARCHAR2(50 BYTE) VISIBLE,
RETURN_BY VARCHAR2(50 BYTE) VISIBLE,
CREATED_DATE TIMESTAMP(6) VISIBLE,
BATCH_NO VARCHAR2(50 BYTE) VISIBLE,
RETURN_STATUS VARCHAR2(4 BYTE) VISIBLE,
LINK_MAN VARCHAR2(50 BYTE) VISIBLE,
LINK_PHONE VARCHAR2(50 BYTE) VISIBLE,
IS_BORROW VARCHAR2(4 BYTE) VISIBLE,
AUDIT_OPINION VARCHAR2(50 BYTE) VISIBLE,
AUDIT_REMARKS VARCHAR2(50 BYTE) VISIBLE,
BORROW_CODE VARCHAR2(50 BYTE) VISIBLE,
IMAGE_URL VARCHAR2(100 BYTE) VISIBLE,
IS_PRINT VARCHAR2(4 BYTE) VISIBLE DEFAULT '0',
IMAGE_NAME VARCHAR2(50 BYTE) VISIBLE,
STATUS VARCHAR2(4 BYTE) VISIBLE DEFAULT '0'
);

COMMENT ON COLUMN RETURN_MATERIAL.ID IS 'id';

COMMENT ON COLUMN RETURN_MATERIAL.CODE IS '????';

COMMENT ON COLUMN RETURN_MATERIAL.SERVICE_INFORMATION_MEMBER IS '??????';

COMMENT ON COLUMN RETURN_MATERIAL.CRANT_NO IS '????';

COMMENT ON COLUMN RETURN_MATERIAL.WAREHOUSE_OUT IS '????';

COMMENT ON COLUMN RETURN_MATERIAL.WAREHOUSE_AREA_OUT IS '????';

COMMENT ON COLUMN RETURN_MATERIAL.BORROW_REASON_DESC IS '???????';

COMMENT ON COLUMN RETURN_MATERIAL.REMARKS IS '??';

COMMENT ON COLUMN RETURN_MATERIAL.EXPECTED_ARRIVAL_DATE IS '??????';

COMMENT ON COLUMN RETURN_MATERIAL.FACTORY_NUMBER IS '????';

COMMENT ON COLUMN RETURN_MATERIAL.RETURN_BY IS '???';

COMMENT ON COLUMN RETURN_MATERIAL.CREATED_DATE IS '????';

COMMENT ON COLUMN RETURN_MATERIAL.BATCH_NO IS '???';

COMMENT ON COLUMN RETURN_MATERIAL.LINK_MAN IS '???';

COMMENT ON COLUMN RETURN_MATERIAL.LINK_PHONE IS '????';

COMMENT ON COLUMN RETURN_MATERIAL.IS_BORROW IS '?/?';

COMMENT ON COLUMN RETURN_MATERIAL.AUDIT_OPINION IS '????';

COMMENT ON COLUMN RETURN_MATERIAL.BORROW_CODE IS '????';

COMMENT ON COLUMN RETURN_MATERIAL.IMAGE_URL IS '????';

COMMENT ON COLUMN RETURN_MATERIAL.IMAGE_NAME IS '????';

COMMENT ON TABLE RETURN_MATERIAL IS '//RETURN_MATERIAL';

-- ----------------------------
-- Table structure for RETURN_MATERIAL_DETAIL
-- ----------------------------
CREATE TABLE RETURN_MATERIAL_DETAIL (
ID VARCHAR2(50 BYTE) VISIBLE NOT NULL,
RETURN_ID VARCHAR2(50 BYTE) VISIBLE,
MATERIAL_NO VARCHAR2(100 BYTE) VISIBLE,
MATERIAL_DESC VARCHAR2(100 BYTE) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE,
REMARKS VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN RETURN_MATERIAL_DETAIL.ID IS 'ID';

COMMENT ON TABLE RETURN_MATERIAL_DETAIL IS '//RETURN_MATERIAL_DETAIL';

-- ----------------------------
-- Table structure for RT_LACK_INBOUND
-- ----------------------------
CREATE TABLE RT_LACK_INBOUND (
ID NUMBER(20,0) VISIBLE NOT NULL,
ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DEALER_CODE VARCHAR2(30 CHAR) VISIBLE,
DEALER_NAME VARCHAR2(150 CHAR) VISIBLE,
BILL_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
BILL_TYPE VARCHAR2(30 CHAR) VISIBLE,
OUT_TYPE VARCHAR2(30 CHAR) VISIBLE,
CREATE_TIME TIMESTAMP(6) VISIBLE,
MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(100 CHAR) VISIBLE,
OUT_STATUS NUMBER(1,0) VISIBLE,
NEED_QTY NUMBER(14,3) VISIBLE,
ALL_INVENTORY NUMBER(14,3) VISIBLE,
OUT_INVENTORY NUMBER(14,3) VISIBLE,
IN_INVENTORY NUMBER(14,3) VISIBLE,
LACK_NUM NUMBER(14,3) VISIBLE,
PRICE NUMBER(14,3) VISIBLE,
NOT_INFORM_QTY NUMBER(14,3) VISIBLE,
REMARK VARCHAR2(255 CHAR) VISIBLE,
PURCHASE_LEVEL_NAME VARCHAR2(30 CHAR) VISIBLE,
MATERIALS_TYPE VARCHAR2(100 CHAR) VISIBLE,
DELIVERY_DATE TIMESTAMP(6) VISIBLE,
RATIO VARCHAR2(255 CHAR) VISIBLE
);

COMMENT ON COLUMN RT_LACK_INBOUND.DEALER_CODE IS '????';

COMMENT ON COLUMN RT_LACK_INBOUND.DEALER_NAME IS '????';

COMMENT ON COLUMN RT_LACK_INBOUND.BILL_NO IS '单据编号';

COMMENT ON COLUMN RT_LACK_INBOUND.BILL_TYPE IS '????';

COMMENT ON COLUMN RT_LACK_INBOUND.OUT_TYPE IS '????';

COMMENT ON COLUMN RT_LACK_INBOUND.CREATE_TIME IS '????';

COMMENT ON COLUMN RT_LACK_INBOUND.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN RT_LACK_INBOUND.MATERIALS_DES IS '????';

COMMENT ON COLUMN RT_LACK_INBOUND.OUT_STATUS IS '????';

COMMENT ON COLUMN RT_LACK_INBOUND.NEED_QTY IS '????';

COMMENT ON COLUMN RT_LACK_INBOUND.ALL_INVENTORY IS '???';

COMMENT ON COLUMN RT_LACK_INBOUND.OUT_INVENTORY IS '???????';

COMMENT ON COLUMN RT_LACK_INBOUND.IN_INVENTORY IS '???????';

COMMENT ON COLUMN RT_LACK_INBOUND.LACK_NUM IS '????';

COMMENT ON COLUMN RT_LACK_INBOUND.PRICE IS '??';

COMMENT ON COLUMN RT_LACK_INBOUND.NOT_INFORM_QTY IS '?????';

COMMENT ON COLUMN RT_LACK_INBOUND.REMARK IS '??';

COMMENT ON COLUMN RT_LACK_INBOUND.PURCHASE_LEVEL_NAME IS '????';

COMMENT ON COLUMN RT_LACK_INBOUND.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN RT_LACK_INBOUND.DELIVERY_DATE IS 'deliveryDate';

COMMENT ON COLUMN RT_LACK_INBOUND.RATIO IS '??';

COMMENT ON TABLE RT_LACK_INBOUND IS '?????';

-- ----------------------------
-- Table structure for RT_LACK_RECORD
-- ----------------------------
CREATE TABLE RT_LACK_RECORD (
ID NUMBER(20,0) VISIBLE NOT NULL,
ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DEALER_CODE VARCHAR2(30 CHAR) VISIBLE,
DEALER_NAME VARCHAR2(150 CHAR) VISIBLE,
BILL_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
BILL_TYPE VARCHAR2(30 CHAR) VISIBLE,
OUT_TYPE VARCHAR2(30 CHAR) VISIBLE,
CREATE_TIME TIMESTAMP(6) VISIBLE,
MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(100 CHAR) VISIBLE,
OUT_STATUS NUMBER(1,0) VISIBLE,
NEED_QTY NUMBER(14,3) VISIBLE,
ALL_INVENTORY NUMBER(14,3) VISIBLE,
OUT_INVENTORY NUMBER(14,3) VISIBLE,
IN_INVENTORY NUMBER(14,3) VISIBLE,
LACK_NUM NUMBER(14,3) VISIBLE,
PRICE NUMBER(14,3) VISIBLE,
NOT_INFORM_QTY NUMBER(14,3) VISIBLE,
REMARK VARCHAR2(1000 CHAR) VISIBLE,
PURCHASE_LEVEL_NAME VARCHAR2(30 CHAR) VISIBLE,
MATERIALS_TYPE VARCHAR2(100 CHAR) VISIBLE,
DELIVERY_DATE TIMESTAMP(6) VISIBLE,
RATIO VARCHAR2(255 CHAR) VISIBLE
);

COMMENT ON COLUMN RT_LACK_RECORD.DEALER_CODE IS '????';

COMMENT ON COLUMN RT_LACK_RECORD.DEALER_NAME IS '????';

COMMENT ON COLUMN RT_LACK_RECORD.BILL_NO IS '单据编号';

COMMENT ON COLUMN RT_LACK_RECORD.BILL_TYPE IS '????';

COMMENT ON COLUMN RT_LACK_RECORD.OUT_TYPE IS '????';

COMMENT ON COLUMN RT_LACK_RECORD.CREATE_TIME IS '????';

COMMENT ON COLUMN RT_LACK_RECORD.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN RT_LACK_RECORD.MATERIALS_DES IS '????';

COMMENT ON COLUMN RT_LACK_RECORD.OUT_STATUS IS '????';

COMMENT ON COLUMN RT_LACK_RECORD.NEED_QTY IS '????';

COMMENT ON COLUMN RT_LACK_RECORD.ALL_INVENTORY IS '???';

COMMENT ON COLUMN RT_LACK_RECORD.OUT_INVENTORY IS '???????';

COMMENT ON COLUMN RT_LACK_RECORD.IN_INVENTORY IS '???????';

COMMENT ON COLUMN RT_LACK_RECORD.LACK_NUM IS '????';

COMMENT ON COLUMN RT_LACK_RECORD.PRICE IS '??';

COMMENT ON COLUMN RT_LACK_RECORD.NOT_INFORM_QTY IS '?????';

COMMENT ON COLUMN RT_LACK_RECORD.REMARK IS '??';

COMMENT ON COLUMN RT_LACK_RECORD.PURCHASE_LEVEL_NAME IS '????';

COMMENT ON COLUMN RT_LACK_RECORD.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN RT_LACK_RECORD.DELIVERY_DATE IS 'deliveryDate';

COMMENT ON COLUMN RT_LACK_RECORD.RATIO IS '??';

COMMENT ON TABLE RT_LACK_RECORD IS '?????';

-- ----------------------------
-- Table structure for RULE_STRATEGY_RELATION
-- ----------------------------
CREATE TABLE RULE_STRATEGY_RELATION (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
RULE_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ACTIVITY_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ACTIVITY_NAME VARCHAR2(100 CHAR) VISIBLE NOT NULL
);

COMMENT ON COLUMN RULE_STRATEGY_RELATION.ID IS '非业务主键id';

COMMENT ON COLUMN RULE_STRATEGY_RELATION.RULE_ID IS '评级信息id';

COMMENT ON COLUMN RULE_STRATEGY_RELATION.ACTIVITY_ID IS '活动标识';

COMMENT ON COLUMN RULE_STRATEGY_RELATION.ACTIVITY_NAME IS '活动标识名称';

COMMENT ON TABLE RULE_STRATEGY_RELATION IS '??????';

-- ----------------------------
-- Table structure for SALE_REVERSE
-- ----------------------------
CREATE TABLE SALE_REVERSE (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
REVERSE_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DELIVERY_NOTE_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
AGENT_ID VARCHAR2(30 CHAR) VISIBLE,
AGENT_NAME VARCHAR2(30 CHAR) VISIBLE,
WAREHOUSE_CODE VARCHAR2(30 CHAR) VISIBLE,
NOTE VARCHAR2(255 CHAR) VISIBLE,
STATE NUMBER(1,0) VISIBLE,
IS_POSTING NUMBER(1,0) VISIBLE,
IS_SAP_REVERSE NUMBER(1,0) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(255 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
ORGID VARCHAR2(30 CHAR) VISIBLE,
AUDIT_STATE NUMBER(1,0) VISIBLE DEFAULT 0  ,
AUDIT_NOTE VARCHAR2(255 CHAR) VISIBLE,
AUDIT_USER_ID VARCHAR2(30 CHAR) VISIBLE,
AUDIT_USER_NAME VARCHAR2(100 CHAR) VISIBLE,
AUDIT_DATE TIMESTAMP(6) VISIBLE,
IN_AREA VARCHAR2(60 BYTE) VISIBLE,
SAP_IN_AREA VARCHAR2(100 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
REVERSE_TYPE NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN SALE_REVERSE.ID IS '唯一标识';

COMMENT ON COLUMN SALE_REVERSE.REVERSE_ORDER IS '冲销入库单号';

COMMENT ON COLUMN SALE_REVERSE.DELIVERY_NOTE_ORDER IS '发货通知单号，对应DELIVERY_NOTE.DELIVERY_NO';

COMMENT ON COLUMN SALE_REVERSE.AGENT_ID IS '???id';

COMMENT ON COLUMN SALE_REVERSE.AGENT_NAME IS '?????';

COMMENT ON COLUMN SALE_REVERSE.WAREHOUSE_CODE IS '????';

COMMENT ON COLUMN SALE_REVERSE.NOTE IS '??';

COMMENT ON COLUMN SALE_REVERSE.STATE IS '???? 0???1????2???';

COMMENT ON COLUMN SALE_REVERSE.IS_POSTING IS '????????? 0?1?';

COMMENT ON COLUMN SALE_REVERSE.IS_SAP_REVERSE IS 'SAP???????????? 0?1?';

COMMENT ON COLUMN SALE_REVERSE.CREATE_ID IS '???id';

COMMENT ON COLUMN SALE_REVERSE.CREATE_NAME IS '?????';

COMMENT ON COLUMN SALE_REVERSE.CREATE_DATE IS '????';

COMMENT ON COLUMN SALE_REVERSE.ORGID IS '??id';

COMMENT ON COLUMN SALE_REVERSE.AUDIT_STATE IS '???? 0???1????2????';

COMMENT ON COLUMN SALE_REVERSE.AUDIT_NOTE IS '????';

COMMENT ON COLUMN SALE_REVERSE.AUDIT_USER_ID IS '???id';

COMMENT ON COLUMN SALE_REVERSE.AUDIT_USER_NAME IS '?????';

COMMENT ON COLUMN SALE_REVERSE.AUDIT_DATE IS '????';

COMMENT ON COLUMN SALE_REVERSE.IN_AREA IS '????';

COMMENT ON COLUMN SALE_REVERSE.SAP_IN_AREA IS 'sap????';

COMMENT ON COLUMN SALE_REVERSE.IS_DEL IS '????';

COMMENT ON COLUMN SALE_REVERSE.REVERSE_TYPE IS '????';

COMMENT ON TABLE SALE_REVERSE IS '//SALE_REVERSE';

-- ----------------------------
-- Table structure for SALE_REVERSE_DETAIL
-- ----------------------------
CREATE TABLE SALE_REVERSE_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
REVERSE_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DELIVERY_NOTE_ORDER VARCHAR2(30 CHAR) VISIBLE,
MATERIAL_NO VARCHAR2(30 CHAR) VISIBLE,
MATERIAL_NAME VARCHAR2(255 CHAR) VISIBLE,
MATERIAL_TYPE VARCHAR2(255 CHAR) VISIBLE,
UNIT VARCHAR2(30 CHAR) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE,
REAL_AMOUNT NUMBER(14,3) VISIBLE,
STATE NUMBER(1,0) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(255 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
ORGID VARCHAR2(30 CHAR) VISIBLE,
DELIVERY_QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
REAL_QTY NUMBER(14,3) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN SALE_REVERSE_DETAIL.ID IS '唯一标识';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.REVERSE_ORDER IS '冲销入库单号';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.DELIVERY_NOTE_ORDER IS '??????';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.MATERIAL_NO IS '????';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.MATERIAL_NAME IS '????';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.MATERIAL_TYPE IS '????';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.UNIT IS '????';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.AMOUNT IS '??????';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.REAL_AMOUNT IS '??????';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.STATE IS '???? 0???1????2???';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.CREATE_ID IS '???id';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.CREATE_NAME IS '?????';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.CREATE_DATE IS '????';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.ORGID IS '??id';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.DELIVERY_QTY IS '???????';

COMMENT ON COLUMN SALE_REVERSE_DETAIL.REAL_QTY IS '???????';

COMMENT ON TABLE SALE_REVERSE_DETAIL IS '//SALE_REVERSE_DETAIL';

-- ----------------------------
-- Table structure for SALE_REVERSE_DETAIL_NEW
-- ----------------------------
CREATE TABLE SALE_REVERSE_DETAIL_NEW (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
REVERSE_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DELIVERY_NOTE_ORDER VARCHAR2(30 CHAR) VISIBLE,
MATERIAL_NO VARCHAR2(30 CHAR) VISIBLE,
MATERIAL_NAME VARCHAR2(255 CHAR) VISIBLE,
MATERIAL_TYPE VARCHAR2(255 CHAR) VISIBLE,
UNIT VARCHAR2(30 CHAR) VISIBLE,
AMOUNT NUMBER(14,3) VISIBLE,
REAL_AMOUNT NUMBER(14,3) VISIBLE,
STATE NUMBER(1,0) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(255 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
ORGID VARCHAR2(30 CHAR) VISIBLE,
DELIVERY_QTY NUMBER(14,3) VISIBLE,
REAL_QTY NUMBER(14,3) VISIBLE
);

COMMENT ON TABLE SALE_REVERSE_DETAIL_NEW IS '//SALE_REVERSE_DETAIL_NEW';

-- ----------------------------
-- Table structure for SALES_BILL
-- ----------------------------
CREATE TABLE SALES_BILL (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
SALES_BILL_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
BORROW_BILL_NO VARCHAR2(30 BYTE) VISIBLE,
CLIENT_ID VARCHAR2(30 BYTE) VISIBLE,
CLIENT_NAME VARCHAR2(200 CHAR) VISIBLE NOT NULL,
SERVICE_PERSON_ID VARCHAR2(30 BYTE) VISIBLE,
SERVICE_PERSON_NAME VARCHAR2(200 CHAR) VISIBLE,
BILL_TYPE NUMBER(1,0) VISIBLE NOT NULL,
APPLY_DATE DATE VISIBLE,
CONSIGNEE VARCHAR2(50 CHAR) VISIBLE,
CONTACT_PHONE VARCHAR2(20 BYTE) VISIBLE,
RECEIPT_ADDRESS VARCHAR2(300 CHAR) VISIBLE,
MODEL VARCHAR2(50 CHAR) VISIBLE,
USE_MACHINE_NO VARCHAR2(50 CHAR) VISIBLE,
SETTLE_MACHINE_NO VARCHAR2(50 CHAR) VISIBLE NOT NULL,
REASON VARCHAR2(200 CHAR) VISIBLE,
WORK_ORDER_NO VARCHAR2(50 CHAR) VISIBLE,
CLAIM_ORDER_NO VARCHAR2(20 CHAR) VISIBLE,
GIVE_QUOTA_TYPE NUMBER(1,0) VISIBLE,
REMAINING_CREDIT NUMBER(22,4) VISIBLE DEFAULT 0,
REMARK VARCHAR2(500 CHAR) VISIBLE,
TOTAL_ORDER_PRICE NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
ADJUSTED_TOTAL_PRICE NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
STATUS NUMBER(1,0) VISIBLE NOT NULL,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
CREATE_DATE DATE VISIBLE NOT NULL,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
COST_TOTAL NUMBER(16,3) VISIBLE,
CREATE_OUTBOUND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
OUTBOUND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
RETURN_REQUEST_STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
OUTBOUND_DATE DATE VISIBLE,
SALE_TYPE NUMBER(2,0) VISIBLE,
BIG_CLIENT_FLAG NUMBER(1,0) VISIBLE
);

COMMENT ON COLUMN SALES_BILL.ID IS '非业务主键id';

COMMENT ON COLUMN SALES_BILL.ORG_ID IS '企业编号';

COMMENT ON COLUMN SALES_BILL.SALES_BILL_NO IS '销售订单号';

COMMENT ON COLUMN SALES_BILL.BORROW_BILL_NO IS '????';

COMMENT ON COLUMN SALES_BILL.CLIENT_ID IS '??id';

COMMENT ON COLUMN SALES_BILL.CLIENT_NAME IS '客户名称';

COMMENT ON COLUMN SALES_BILL.SERVICE_PERSON_ID IS '????id';

COMMENT ON COLUMN SALES_BILL.SERVICE_PERSON_NAME IS '??????';

COMMENT ON COLUMN SALES_BILL.BILL_TYPE IS '订单类型 1-普通，2-三包，3-赠送';

COMMENT ON COLUMN SALES_BILL.APPLY_DATE IS '????';

COMMENT ON COLUMN SALES_BILL.CONSIGNEE IS '???';

COMMENT ON COLUMN SALES_BILL.CONTACT_PHONE IS '????';

COMMENT ON COLUMN SALES_BILL.RECEIPT_ADDRESS IS '????';

COMMENT ON COLUMN SALES_BILL.MODEL IS '??';

COMMENT ON COLUMN SALES_BILL.USE_MACHINE_NO IS '??????';

COMMENT ON COLUMN SALES_BILL.SETTLE_MACHINE_NO IS '??????';

COMMENT ON COLUMN SALES_BILL.REASON IS '??';

COMMENT ON COLUMN SALES_BILL.WORK_ORDER_NO IS '????';

COMMENT ON COLUMN SALES_BILL.CLAIM_ORDER_NO IS '????';

COMMENT ON COLUMN SALES_BILL.GIVE_QUOTA_TYPE IS '?????? 1-???2-??';

COMMENT ON COLUMN SALES_BILL.REMAINING_CREDIT IS '??????';

COMMENT ON COLUMN SALES_BILL.REMARK IS '??';

COMMENT ON COLUMN SALES_BILL.TOTAL_ORDER_PRICE IS '订单总价';

COMMENT ON COLUMN SALES_BILL.ADJUSTED_TOTAL_PRICE IS '调整后总价';

COMMENT ON COLUMN SALES_BILL.STATUS IS '状态 0-保存，1-提交，2-出库';

COMMENT ON COLUMN SALES_BILL.IS_DEL IS '删除标识，0：未删除，1：删除';

COMMENT ON COLUMN SALES_BILL.CREATE_DATE IS '创建时间';

COMMENT ON COLUMN SALES_BILL.CREATE_ID IS '???';

COMMENT ON COLUMN SALES_BILL.UPDATE_DATE IS '????';

COMMENT ON COLUMN SALES_BILL.UPDATE_ID IS '???';

COMMENT ON COLUMN SALES_BILL.COST_TOTAL IS '????';

COMMENT ON COLUMN SALES_BILL.CREATE_OUTBOUND_STATUS IS '???????:0-????1-????2-???';

COMMENT ON COLUMN SALES_BILL.OUTBOUND_STATUS IS '????0-????1-?????2-???';

COMMENT ON COLUMN SALES_BILL.RETURN_REQUEST_STATUS IS '??????';

COMMENT ON COLUMN SALES_BILL.OUTBOUND_DATE IS '????';

COMMENT ON COLUMN SALES_BILL.SALE_TYPE IS '?????????1?????2?????3??????4?????5?????5??????';

COMMENT ON COLUMN SALES_BILL.BIG_CLIENT_FLAG IS '??????0?1?';

COMMENT ON TABLE SALES_BILL IS '????';

-- ----------------------------
-- Table structure for SALES_BILL_DETAIL
-- ----------------------------
CREATE TABLE SALES_BILL_DETAIL (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
SALES_BILL_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
MATERIAL_NO VARCHAR2(50 CHAR) VISIBLE,
MATERIAL_DES VARCHAR2(200 CHAR) VISIBLE,
APPLY_QTY NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
UNIT VARCHAR2(50 CHAR) VISIBLE,
SINGLE_PRICE NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
APPLY_TOTAL_PRICE NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
PRICE_GROUP VARCHAR2(50 CHAR) VISIBLE,
ADJUSTED_QTY NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
ADJUSTED_SINGLE_PRICE NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
ADJUSTED_TOTAL_PRICE NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
STATUS NUMBER(1,0) VISIBLE NOT NULL,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
CREATE_DATE DATE VISIBLE NOT NULL,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
COST_PRICE NUMBER(16,3) VISIBLE,
COST_SUBTOTAL NUMBER(16,3) VISIBLE,
CREATE_OUTBOUND_QTY NUMBER(22,3) VISIBLE DEFAULT 0 ,
ACTUAL_OUTBOUND_QTY NUMBER(22,3) VISIBLE DEFAULT 0 ,
CREATE_OUTBOUND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
OUTBOUND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
RETURN_REQUEST_STATUS NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN SALES_BILL_DETAIL.ID IS '非业务主键id';

COMMENT ON COLUMN SALES_BILL_DETAIL.ORG_ID IS '企业编号';

COMMENT ON COLUMN SALES_BILL_DETAIL.SALES_BILL_NO IS '销售单号';

COMMENT ON COLUMN SALES_BILL_DETAIL.MATERIAL_NO IS '????';

COMMENT ON COLUMN SALES_BILL_DETAIL.MATERIAL_DES IS '????';

COMMENT ON COLUMN SALES_BILL_DETAIL.APPLY_QTY IS '申请数量';

COMMENT ON COLUMN SALES_BILL_DETAIL.UNIT IS '??';

COMMENT ON COLUMN SALES_BILL_DETAIL.SINGLE_PRICE IS '单价';

COMMENT ON COLUMN SALES_BILL_DETAIL.APPLY_TOTAL_PRICE IS '申请总价';

COMMENT ON COLUMN SALES_BILL_DETAIL.PRICE_GROUP IS '???';

COMMENT ON COLUMN SALES_BILL_DETAIL.ADJUSTED_QTY IS '调整后数量';

COMMENT ON COLUMN SALES_BILL_DETAIL.ADJUSTED_SINGLE_PRICE IS '调整后单价';

COMMENT ON COLUMN SALES_BILL_DETAIL.ADJUSTED_TOTAL_PRICE IS '调整后总价';

COMMENT ON COLUMN SALES_BILL_DETAIL.STATUS IS '状态 0-保存，1-提交，2-出库';

COMMENT ON COLUMN SALES_BILL_DETAIL.IS_DEL IS '删除标识，0：未删除，1：删除';

COMMENT ON COLUMN SALES_BILL_DETAIL.CREATE_DATE IS '创建时间';

COMMENT ON COLUMN SALES_BILL_DETAIL.CREATE_ID IS '???';

COMMENT ON COLUMN SALES_BILL_DETAIL.UPDATE_DATE IS '????';

COMMENT ON COLUMN SALES_BILL_DETAIL.UPDATE_ID IS '???';

COMMENT ON COLUMN SALES_BILL_DETAIL.COST_PRICE IS '????';

COMMENT ON COLUMN SALES_BILL_DETAIL.COST_SUBTOTAL IS '????';

COMMENT ON COLUMN SALES_BILL_DETAIL.CREATE_OUTBOUND_QTY IS '???????';

COMMENT ON COLUMN SALES_BILL_DETAIL.ACTUAL_OUTBOUND_QTY IS '??????';

COMMENT ON COLUMN SALES_BILL_DETAIL.CREATE_OUTBOUND_STATUS IS '???????:0-????1-????2-???';

COMMENT ON COLUMN SALES_BILL_DETAIL.OUTBOUND_STATUS IS '????0-????1-?????2-???';

COMMENT ON COLUMN SALES_BILL_DETAIL.RETURN_REQUEST_STATUS IS '??????';

COMMENT ON TABLE SALES_BILL_DETAIL IS '??????';

-- ----------------------------
-- Table structure for SALES_COMPLETE_CONFIG
-- ----------------------------
CREATE TABLE SALES_COMPLETE_CONFIG (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
RATING_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CLIENT_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CLIENT_NAME VARCHAR2(100 CHAR) VISIBLE,
OIL_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
FILTER_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
BROKEN_HAMMER_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
TOOTH_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
FOUR_ROUNDS_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
HYDRAULIC_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
RUBBER_PARTS_TARGET NUMBER(22,3) VISIBLE DEFAULT 0,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
CREATOR_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 CHAR) VISIBLE,
MODIFIER_NAME VARCHAR2(50 CHAR) VISIBLE,
MODIFY_TIME DATE VISIBLE
);

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.ID IS '非业务主键id';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.RATING_ID IS '评级信息id';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.CLIENT_ID IS '客户id';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.CLIENT_NAME IS '????';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.OIL_TARGET IS '????';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.FILTER_TARGET IS '????';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.BROKEN_HAMMER_TARGET IS '?????';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.TOOTH_TARGET IS '????';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.FOUR_ROUNDS_TARGET IS '??????';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.HYDRAULIC_TARGET IS '??????';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.RUBBER_PARTS_TARGET IS '?????';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.IS_DEL IS '????(0??1?)';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.CREATOR_ID IS '创建人id';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.CREATOR_NAME IS '创建人姓名';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN SALES_COMPLETE_CONFIG.MODIFY_TIME IS '????';

COMMENT ON TABLE SALES_COMPLETE_CONFIG IS '?????????';

-- ----------------------------
-- Table structure for SALES_COMPLETE_DETAIL
-- ----------------------------
CREATE TABLE SALES_COMPLETE_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SCORE_INFO_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
SALES_TYPE NUMBER(1,0) VISIBLE,
SALES_DES VARCHAR2(100 CHAR) VISIBLE,
ACTUAL_SALES_AMOUNT NUMBER(22,3) VISIBLE DEFAULT 0,
SALES_TARGET_AMOUNT NUMBER(22,3) VISIBLE DEFAULT 0,
COMPLETE_RATE VARCHAR2(30 BYTE) VISIBLE,
SCORE NUMBER(6,0) VISIBLE DEFAULT 0,
CREATOR_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 CHAR) VISIBLE,
MODIFIER_NAME VARCHAR2(50 CHAR) VISIBLE,
MODIFY_TIME DATE VISIBLE
);

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.ID IS '非业务主键id';

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.SCORE_INFO_ID IS '评分信息id';

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.SALES_TYPE IS '????';

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.SALES_DES IS '????';

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.ACTUAL_SALES_AMOUNT IS '??????';

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.SALES_TARGET_AMOUNT IS '??????';

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.COMPLETE_RATE IS '???';

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.SCORE IS '??';

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.CREATOR_ID IS '创建人id';

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.CREATOR_NAME IS '创建人姓名';

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN SALES_COMPLETE_DETAIL.MODIFY_TIME IS '????';

COMMENT ON TABLE SALES_COMPLETE_DETAIL IS '????????';

-- ----------------------------
-- Table structure for SALES_INVOICE_APPLY
-- ----------------------------
CREATE TABLE SALES_INVOICE_APPLY (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SALES_INVOICE_ORDER VARCHAR2(30 CHAR) VISIBLE,
ORGID VARCHAR2(20 CHAR) VISIBLE,
DEALER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
APPLY_PRICE NUMBER(20,2) VISIBLE,
INVOICE_PRICE NUMBER(20,2) VISIBLE,
DEALERS_PRICE NUMBER(20,2) VISIBLE,
BEFORE_ADJUST_PRICE NUMBER(20,2) VISIBLE,
AFTER_ADJUST_PRICE NUMBER(20,2) VISIBLE,
APPLY_STATUS NUMBER(1,0) VISIBLE,
REMARK VARCHAR2(100 BYTE) VISIBLE,
APPLY_NAME VARCHAR2(30 CHAR) VISIBLE,
APPLY_ID VARCHAR2(30 BYTE) VISIBLE,
APPLY_DATE TIMESTAMP(6) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0 ,
DEALER_ORG_NAME VARCHAR2(100 BYTE) VISIBLE,
DISCOUNT NUMBER(3,0) VISIBLE,
PRICE_REDUCE NUMBER(20,2) VISIBLE
);

COMMENT ON COLUMN SALES_INVOICE_APPLY.ID IS '主键ID';

COMMENT ON COLUMN SALES_INVOICE_APPLY.SALES_INVOICE_ORDER IS '????????';

COMMENT ON COLUMN SALES_INVOICE_APPLY.ORGID IS '????';

COMMENT ON COLUMN SALES_INVOICE_APPLY.DEALER_ORG_ID IS '????';

COMMENT ON COLUMN SALES_INVOICE_APPLY.APPLY_PRICE IS '??????';

COMMENT ON COLUMN SALES_INVOICE_APPLY.INVOICE_PRICE IS '?????';

COMMENT ON COLUMN SALES_INVOICE_APPLY.DEALERS_PRICE IS '??????';

COMMENT ON COLUMN SALES_INVOICE_APPLY.BEFORE_ADJUST_PRICE IS '?????';

COMMENT ON COLUMN SALES_INVOICE_APPLY.AFTER_ADJUST_PRICE IS '?????';

COMMENT ON COLUMN SALES_INVOICE_APPLY.APPLY_STATUS IS '???0????????1???????2????????3?????4????5???';

COMMENT ON COLUMN SALES_INVOICE_APPLY.REMARK IS '??';

COMMENT ON COLUMN SALES_INVOICE_APPLY.APPLY_NAME IS '?????';

COMMENT ON COLUMN SALES_INVOICE_APPLY.APPLY_ID IS '???id';

COMMENT ON COLUMN SALES_INVOICE_APPLY.APPLY_DATE IS '????';

COMMENT ON COLUMN SALES_INVOICE_APPLY.IS_DEL IS '????';

COMMENT ON COLUMN SALES_INVOICE_APPLY.DEALER_ORG_NAME IS '????';

COMMENT ON COLUMN SALES_INVOICE_APPLY.DISCOUNT IS '????';

COMMENT ON COLUMN SALES_INVOICE_APPLY.PRICE_REDUCE IS '????';

COMMENT ON TABLE SALES_INVOICE_APPLY IS '???????';

-- ----------------------------
-- Table structure for SALES_INVOICE_APPLY_DETAIL
-- ----------------------------
CREATE TABLE SALES_INVOICE_APPLY_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DEALER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
DEALER_ORG_NAME VARCHAR2(100 BYTE) VISIBLE,
APPLY_PRICE NUMBER(14,3) VISIBLE,
INVOICE_ORDER VARCHAR2(50 BYTE) VISIBLE,
INVOICE_PRICE NUMBER(14,3) VISIBLE,
APPLY_ORDER VARCHAR2(30 BYTE) VISIBLE,
APPLY_ID VARCHAR2(30 BYTE) VISIBLE,
APPLY_NAME VARCHAR2(50 BYTE) VISIBLE,
APPLY_DATE DATE VISIBLE
);

COMMENT ON COLUMN SALES_INVOICE_APPLY_DETAIL.ID IS 'ID';

COMMENT ON COLUMN SALES_INVOICE_APPLY_DETAIL.DEALER_ORG_ID IS '??id';

COMMENT ON COLUMN SALES_INVOICE_APPLY_DETAIL.DEALER_ORG_NAME IS '????';

COMMENT ON COLUMN SALES_INVOICE_APPLY_DETAIL.APPLY_PRICE IS '??????';

COMMENT ON COLUMN SALES_INVOICE_APPLY_DETAIL.INVOICE_ORDER IS '???';

COMMENT ON COLUMN SALES_INVOICE_APPLY_DETAIL.INVOICE_PRICE IS '????';

COMMENT ON COLUMN SALES_INVOICE_APPLY_DETAIL.APPLY_ORDER IS '????????';

COMMENT ON COLUMN SALES_INVOICE_APPLY_DETAIL.APPLY_ID IS '???ID';

COMMENT ON COLUMN SALES_INVOICE_APPLY_DETAIL.APPLY_NAME IS '?????';

COMMENT ON COLUMN SALES_INVOICE_APPLY_DETAIL.APPLY_DATE IS '????';

COMMENT ON TABLE SALES_INVOICE_APPLY_DETAIL IS '//SALES_INVOICE_APPLY_DETAIL';

-- ----------------------------
-- Table structure for SALES_INVOICE_AUDIT
-- ----------------------------
CREATE TABLE SALES_INVOICE_AUDIT (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SALES_INVOICE_ORDER VARCHAR2(30 CHAR) VISIBLE,
AUDIT_RESULT NUMBER(1,0) VISIBLE,
AUDIT_OPINION VARCHAR2(100 BYTE) VISIBLE,
AUDIT_ID VARCHAR2(30 BYTE) VISIBLE,
AUDIT_NAME VARCHAR2(30 CHAR) VISIBLE,
AUDIT_DATE TIMESTAMP(6) VISIBLE,
AUDIT_ROLE VARCHAR2(100 BYTE) VISIBLE
);

COMMENT ON COLUMN SALES_INVOICE_AUDIT.ID IS 'ID';

COMMENT ON COLUMN SALES_INVOICE_AUDIT.SALES_INVOICE_ORDER IS '????????';

COMMENT ON COLUMN SALES_INVOICE_AUDIT.AUDIT_RESULT IS '?????0???1??';

COMMENT ON COLUMN SALES_INVOICE_AUDIT.AUDIT_OPINION IS '????';

COMMENT ON COLUMN SALES_INVOICE_AUDIT.AUDIT_ID IS '???id';

COMMENT ON COLUMN SALES_INVOICE_AUDIT.AUDIT_NAME IS '???';

COMMENT ON COLUMN SALES_INVOICE_AUDIT.AUDIT_DATE IS '????';

COMMENT ON COLUMN SALES_INVOICE_AUDIT.AUDIT_ROLE IS '?????0???????1??????2??????';

COMMENT ON TABLE SALES_INVOICE_AUDIT IS '?????';

-- ----------------------------
-- Table structure for SALES_OUT_BILL
-- ----------------------------
CREATE TABLE SALES_OUT_BILL (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
SALES_OUT_BILL_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
BORROW_BILL_NO VARCHAR2(30 BYTE) VISIBLE,
SALES_BILL_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CLIENT_NAME VARCHAR2(200 CHAR) VISIBLE NOT NULL,
GENERATE_PERSON VARCHAR2(200 CHAR) VISIBLE NOT NULL,
GENERATE_DATE DATE VISIBLE NOT NULL,
SERVICE_PERSON_NAME VARCHAR2(200 CHAR) VISIBLE,
OUTBOUND_STATUS NUMBER(1,0) VISIBLE NOT NULL,
IS_STATE NUMBER(1,0) VISIBLE NOT NULL,
OUTBOUND_DATE DATE VISIBLE,
CONSIGNEE VARCHAR2(50 CHAR) VISIBLE,
CONTACT_PHONE VARCHAR2(20 BYTE) VISIBLE,
RECEIPT_ADDRESS VARCHAR2(300 CHAR) VISIBLE,
BILL_TYPE NUMBER(1,0) VISIBLE,
IS_PRINT NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
OUT_AREA VARCHAR2(60 CHAR) VISIBLE NOT NULL,
OUT_LOCATION VARCHAR2(20 BYTE) VISIBLE,
TOTAL_PRICE NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
CHECK_STATE NUMBER(1,0) VISIBLE,
REMARK VARCHAR2(500 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
CREATE_DATE DATE VISIBLE NOT NULL,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
COST_TOTAL NUMBER(16,3) VISIBLE,
USE_MACHINE_NO VARCHAR2(50 CHAR) VISIBLE,
RETURN_STATUS NUMBER(1,0) VISIBLE DEFAULT 0 ,
CREATE_SALE_STATUS NUMBER(1,0) VISIBLE DEFAULT 1,
INVOICE_NO VARCHAR2(100 BYTE) VISIBLE
);

COMMENT ON COLUMN SALES_OUT_BILL.ID IS '非业务主键id';

COMMENT ON COLUMN SALES_OUT_BILL.ORG_ID IS '企业编号';

COMMENT ON COLUMN SALES_OUT_BILL.SALES_OUT_BILL_NO IS '出库单号';

COMMENT ON COLUMN SALES_OUT_BILL.BORROW_BILL_NO IS '????';

COMMENT ON COLUMN SALES_OUT_BILL.SALES_BILL_NO IS '销售单号';

COMMENT ON COLUMN SALES_OUT_BILL.CLIENT_NAME IS '客户名称';

COMMENT ON COLUMN SALES_OUT_BILL.GENERATE_PERSON IS '制单人';

COMMENT ON COLUMN SALES_OUT_BILL.GENERATE_DATE IS '制单时间';

COMMENT ON COLUMN SALES_OUT_BILL.SERVICE_PERSON_NAME IS '??????';

COMMENT ON COLUMN SALES_OUT_BILL.OUTBOUND_STATUS IS '出库状态 0未出库，1部分出库，2已出库，3强制完成';

COMMENT ON COLUMN SALES_OUT_BILL.IS_STATE IS '是否有效：0无效，1有效';

COMMENT ON COLUMN SALES_OUT_BILL.OUTBOUND_DATE IS '????';

COMMENT ON COLUMN SALES_OUT_BILL.CONSIGNEE IS '???';

COMMENT ON COLUMN SALES_OUT_BILL.CONTACT_PHONE IS '????';

COMMENT ON COLUMN SALES_OUT_BILL.RECEIPT_ADDRESS IS '????';

COMMENT ON COLUMN SALES_OUT_BILL.BILL_TYPE IS '???? 0-???1-???2-??';

COMMENT ON COLUMN SALES_OUT_BILL.IS_PRINT IS '是否打印 0-否，1-是';

COMMENT ON COLUMN SALES_OUT_BILL.OUT_AREA IS '发出仓库';

COMMENT ON COLUMN SALES_OUT_BILL.OUT_LOCATION IS '????';

COMMENT ON COLUMN SALES_OUT_BILL.TOTAL_PRICE IS '总价';

COMMENT ON COLUMN SALES_OUT_BILL.CHECK_STATE IS '???? 0???1????2???';

COMMENT ON COLUMN SALES_OUT_BILL.REMARK IS '??';

COMMENT ON COLUMN SALES_OUT_BILL.IS_DEL IS '删除标识，0：未删除，1：删除';

COMMENT ON COLUMN SALES_OUT_BILL.CREATE_DATE IS '创建时间';

COMMENT ON COLUMN SALES_OUT_BILL.CREATE_ID IS '???';

COMMENT ON COLUMN SALES_OUT_BILL.UPDATE_DATE IS '????';

COMMENT ON COLUMN SALES_OUT_BILL.UPDATE_ID IS '???';

COMMENT ON COLUMN SALES_OUT_BILL.COST_TOTAL IS '????';

COMMENT ON COLUMN SALES_OUT_BILL.USE_MACHINE_NO IS '??????';

COMMENT ON COLUMN SALES_OUT_BILL.RETURN_STATUS IS '????(0???1????2????)';

COMMENT ON COLUMN SALES_OUT_BILL.CREATE_SALE_STATUS IS '???????:0-????1-???';

COMMENT ON COLUMN SALES_OUT_BILL.INVOICE_NO IS '???';

COMMENT ON TABLE SALES_OUT_BILL IS '?????';

-- ----------------------------
-- Table structure for SALES_OUT_BILL_DETAIL
-- ----------------------------
CREATE TABLE SALES_OUT_BILL_DETAIL (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
SALES_BILL_OUT_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
SALES_BILL_NO VARCHAR2(30 BYTE) VISIBLE NOT NULL,
MATERIAL_NO VARCHAR2(50 CHAR) VISIBLE,
MATERIAL_DES VARCHAR2(200 CHAR) VISIBLE,
UNIT VARCHAR2(50 CHAR) VISIBLE,
DEFAULT_STORAGE VARCHAR2(50 CHAR) VISIBLE,
TOTAL_ORDER_QTY NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
ISSUED_QTY NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
THIS_SHIP_QTY NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
SINGLE_PRICE NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
OUTBOUND_QTY NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
REAL_STOCK_QTY NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
INTENT_OCCUPATION NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
SHIP_OCCUPATION NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
SAFETY_STOCK NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
ONLINE_STOCK NUMBER(22,4) VISIBLE DEFAULT 0  NOT NULL,
OUTBOUND_STATUS NUMBER(1,0) VISIBLE NOT NULL,
IS_STATE NUMBER(1,0) VISIBLE NOT NULL,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0  NOT NULL,
CREATE_DATE DATE VISIBLE NOT NULL,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
COST_PRICE NUMBER(16,3) VISIBLE,
COST_SUBTOTAL NUMBER(16,3) VISIBLE,
ACTUAL_RETURN_QTY NUMBER(22,4) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.ID IS '非业务主键id';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.ORG_ID IS '企业编号';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.SALES_BILL_OUT_NO IS '出库单号';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.SALES_BILL_NO IS '销售单号';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.MATERIAL_NO IS '????';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.MATERIAL_DES IS '????';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.UNIT IS '??';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.DEFAULT_STORAGE IS '????';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.TOTAL_ORDER_QTY IS '订单总数';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.ISSUED_QTY IS '已发数量';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.THIS_SHIP_QTY IS '本次发货';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.SINGLE_PRICE IS '单价';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.OUTBOUND_QTY IS '已出库数';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.REAL_STOCK_QTY IS '实际库存';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.INTENT_OCCUPATION IS '意向占用';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.SHIP_OCCUPATION IS '发货占用';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.SAFETY_STOCK IS '安全库存';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.ONLINE_STOCK IS '库存上线';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.OUTBOUND_STATUS IS '出库状态 0未出库，1部分出库，2已出库，3强制完成';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.IS_STATE IS '是否有效：0无效，1有效';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.IS_DEL IS '删除标识，0：未删除，1：删除';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.CREATE_DATE IS '创建时间';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.CREATE_ID IS '???';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.UPDATE_DATE IS '????';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.UPDATE_ID IS '???';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.COST_PRICE IS '????';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.COST_SUBTOTAL IS '????';

COMMENT ON COLUMN SALES_OUT_BILL_DETAIL.ACTUAL_RETURN_QTY IS '??????';

COMMENT ON TABLE SALES_OUT_BILL_DETAIL IS '????????';

-- ----------------------------
-- Table structure for SALES_OUT_POST
-- ----------------------------
CREATE TABLE SALES_OUT_POST (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
SALES_OUT_ID VARCHAR2(20 BYTE) VISIBLE,
POST_FLAG NUMBER(1,0) VISIBLE,
SAP_SALE_ORDER VARCHAR2(20 BYTE) VISIBLE,
SAP_OUT_BILL VARCHAR2(20 BYTE) VISIBLE,
SAP_OUT_NO VARCHAR2(20 BYTE) VISIBLE,
MATERIALS_NO VARCHAR2(20 BYTE) VISIBLE,
POST_ID VARCHAR2(20 BYTE) VISIBLE,
POST_NAME VARCHAR2(50 BYTE) VISIBLE,
POST_TIME DATE VISIBLE,
DELETE_FLAG NUMBER(1,0) VISIBLE
);

COMMENT ON COLUMN SALES_OUT_POST.ID IS '主键';

COMMENT ON COLUMN SALES_OUT_POST.SALES_OUT_ID IS '??SALES_OUT_BILL.ID';

COMMENT ON COLUMN SALES_OUT_POST.POST_FLAG IS '??????0?1?';

COMMENT ON COLUMN SALES_OUT_POST.SAP_SALE_ORDER IS 'sap????';

COMMENT ON COLUMN SALES_OUT_POST.SAP_OUT_BILL IS 'sap??????';

COMMENT ON COLUMN SALES_OUT_POST.SAP_OUT_NO IS '???sap??????B+9????';

COMMENT ON COLUMN SALES_OUT_POST.MATERIALS_NO IS '????sap????';

COMMENT ON COLUMN SALES_OUT_POST.POST_ID IS '???ID';

COMMENT ON COLUMN SALES_OUT_POST.POST_NAME IS '?????';

COMMENT ON COLUMN SALES_OUT_POST.POST_TIME IS '????';

COMMENT ON COLUMN SALES_OUT_POST.DELETE_FLAG IS '??????';

COMMENT ON TABLE SALES_OUT_POST IS '?????????';

-- ----------------------------
-- Table structure for SALES_RETURN_APPLY
-- ----------------------------
CREATE TABLE SALES_RETURN_APPLY (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
PURCHASE_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
PURCHASE_ORG_NAME VARCHAR2(200 BYTE) VISIBLE,
BUYER_ID VARCHAR2(100 CHAR) VISIBLE,
BUYER_NAME VARCHAR2(200 BYTE) VISIBLE,
SUPPLIER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
SUPPLIER_ORG_NAME VARCHAR2(200 BYTE) VISIBLE,
SALESMAN_ID VARCHAR2(20 BYTE) VISIBLE,
SALESMAN_NAME VARCHAR2(200 BYTE) VISIBLE,
AUDIT_DESC VARCHAR2(500 BYTE) VISIBLE,
CREATE_DATE DATE VISIBLE,
UPDATE_DATE DATE VISIBLE,
REMARK VARCHAR2(500 BYTE) VISIBLE,
STATUS NUMBER VISIBLE DEFAULT 0  ,
SALE_NO VARCHAR2(30 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0  ,
IS_RETURN NUMBER VISIBLE DEFAULT 0  ,
IS_IN NUMBER VISIBLE DEFAULT 0  ,
APPLY_NO VARCHAR2(30 BYTE) VISIBLE,
AUDIT_ID VARCHAR2(20 BYTE) VISIBLE,
AUDIT_NAME VARCHAR2(200 BYTE) VISIBLE,
AUDIT_DATE DATE VISIBLE,
DEPT VARCHAR2(30 BYTE) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(30 BYTE) VISIBLE,
SECOND_AUDIT_ID VARCHAR2(18 CHAR) VISIBLE,
SECOND_AUDIT_NAME VARCHAR2(200 CHAR) VISIBLE,
SECOND_AUDIT_DATE DATE VISIBLE,
PAY_CONDITION_CODE VARCHAR2(20 CHAR) VISIBLE,
PAY_CONDITION_NAME VARCHAR2(100 CHAR) VISIBLE,
RETURN_REASON_CODE VARCHAR2(18 CHAR) VISIBLE,
RETURN_REASON_NAME VARCHAR2(100 CHAR) VISIBLE,
RETURN_CATEGORY_CODE VARCHAR2(20 CHAR) VISIBLE,
RETURN_CATEGORY_NAME VARCHAR2(100 CHAR) VISIBLE,
CRM_ORDER VARCHAR2(50 CHAR) VISIBLE,
GENERAL_MAMAGER_AUDIT_ID VARCHAR2(30 BYTE) VISIBLE,
GENERAL_MAMAGER_AUDIT_NAME VARCHAR2(200 BYTE) VISIBLE,
GENERAL_MAMAGER_AUDIT_DATE DATE VISIBLE
);

COMMENT ON COLUMN SALES_RETURN_APPLY.ID IS 'id';

COMMENT ON COLUMN SALES_RETURN_APPLY.PURCHASE_ORG_ID IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY.PURCHASE_ORG_NAME IS '??????';

COMMENT ON COLUMN SALES_RETURN_APPLY.BUYER_ID IS '???id';

COMMENT ON COLUMN SALES_RETURN_APPLY.BUYER_NAME IS '???';

COMMENT ON COLUMN SALES_RETURN_APPLY.SUPPLIER_ORG_ID IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY.SUPPLIER_ORG_NAME IS '??????';

COMMENT ON COLUMN SALES_RETURN_APPLY.SALESMAN_ID IS '???ID';

COMMENT ON COLUMN SALES_RETURN_APPLY.SALESMAN_NAME IS '???';

COMMENT ON COLUMN SALES_RETURN_APPLY.AUDIT_DESC IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY.CREATE_DATE IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY.UPDATE_DATE IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY.REMARK IS '??';

COMMENT ON COLUMN SALES_RETURN_APPLY.STATUS IS '???0?????????????????1??????????????????????2???????(????????????)?3????????4????????10????????????????11????????????????';

COMMENT ON COLUMN SALES_RETURN_APPLY.SALE_NO IS '??????????';

COMMENT ON COLUMN SALES_RETURN_APPLY.IS_DEL IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY.IS_RETURN IS '???????????????0????1?????2?????3?????';

COMMENT ON COLUMN SALES_RETURN_APPLY.IS_IN IS '?????0????1????2?????';

COMMENT ON COLUMN SALES_RETURN_APPLY.APPLY_NO IS '??????';

COMMENT ON COLUMN SALES_RETURN_APPLY.AUDIT_ID IS '??????id??????????????????id?';

COMMENT ON COLUMN SALES_RETURN_APPLY.AUDIT_NAME IS '?????(???????????????????)';

COMMENT ON COLUMN SALES_RETURN_APPLY.AUDIT_DATE IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY.DEPT IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY.SECOND_AUDIT_NAME IS '????????';

COMMENT ON COLUMN SALES_RETURN_APPLY.SECOND_AUDIT_DATE IS '???????';

COMMENT ON COLUMN SALES_RETURN_APPLY.PAY_CONDITION_CODE IS '????code';

COMMENT ON COLUMN SALES_RETURN_APPLY.PAY_CONDITION_NAME IS '??????';

COMMENT ON COLUMN SALES_RETURN_APPLY.RETURN_REASON_CODE IS '????code';

COMMENT ON COLUMN SALES_RETURN_APPLY.RETURN_REASON_NAME IS '??????';

COMMENT ON COLUMN SALES_RETURN_APPLY.RETURN_CATEGORY_CODE IS '????code';

COMMENT ON COLUMN SALES_RETURN_APPLY.RETURN_CATEGORY_NAME IS '??????';

COMMENT ON COLUMN SALES_RETURN_APPLY.CRM_ORDER IS 'crm??';

COMMENT ON COLUMN SALES_RETURN_APPLY.GENERAL_MAMAGER_AUDIT_ID IS '????????????(????)';

COMMENT ON COLUMN SALES_RETURN_APPLY.GENERAL_MAMAGER_AUDIT_DATE IS '????????????(????)';

COMMENT ON TABLE SALES_RETURN_APPLY IS '?????';

-- ----------------------------
-- Table structure for SALES_RETURN_APPLY_DETAIL
-- ----------------------------
CREATE TABLE SALES_RETURN_APPLY_DETAIL (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
APPLY_ID VARCHAR2(20 BYTE) VISIBLE,
MATERIALS_NO VARCHAR2(30 BYTE) VISIBLE,
MATERIALS_TYPE VARCHAR2(60 BYTE) VISIBLE,
MATERIALS_DES VARCHAR2(255 BYTE) VISIBLE,
UNIT VARCHAR2(30 BYTE) VISIBLE,
QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
IS_IN NUMBER(11,0) VISIBLE DEFAULT 0  ,
DELIVERY_DETAIL_ID VARCHAR2(20 BYTE) VISIBLE,
DELIVERY_NO VARCHAR2(20 BYTE) VISIBLE,
RETURN_QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
IN_QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
IS_RETURN NUMBER(11,0) VISIBLE DEFAULT 0  ,
APPLY_QTY NUMBER(14,3) VISIBLE,
SALE_NO VARCHAR2(30 CHAR) VISIBLE,
CHECK_OUT_NUM NUMBER(14,3) VISIBLE DEFAULT 0,
PRICE_SCHEME_ID VARCHAR2(18 CHAR) VISIBLE,
PRICE_SCHEME_NAME VARCHAR2(100 CHAR) VISIBLE,
PRICE NUMBER(14,3) VISIBLE,
PRICE_DISCOUNT NUMBER(14,3) VISIBLE,
DISCOUNT VARCHAR2(32 BYTE) VISIBLE
);

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.ID IS 'ID';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.APPLY_ID IS '????ID';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.MATERIALS_NO IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.MATERIALS_DES IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.UNIT IS '??';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.QTY IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.IS_IN IS '?????0????1????2?????';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.DELIVERY_DETAIL_ID IS '???????ID';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.DELIVERY_NO IS '?????ID';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.RETURN_QTY IS '?????';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.IN_QTY IS '?????';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.IS_RETURN IS '?????0????1????2?????';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.APPLY_QTY IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.SALE_NO IS '????';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.CHECK_OUT_NUM IS '??????';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.PRICE_SCHEME_ID IS '????id';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.PRICE_SCHEME_NAME IS '??????';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.PRICE IS '??';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.PRICE_DISCOUNT IS '??????';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL.DISCOUNT IS '??';

COMMENT ON TABLE SALES_RETURN_APPLY_DETAIL IS '??????';

-- ----------------------------
-- Table structure for SALES_RETURN_APPLY_DETAIL_EXT
-- ----------------------------
CREATE TABLE SALES_RETURN_APPLY_DETAIL_EXT (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
DETAIL_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
DELIVERY_NO VARCHAR2(500 BYTE) VISIBLE
);

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL_EXT.ID IS '主键';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL_EXT.DETAIL_ID IS '退货申请表主键';

COMMENT ON COLUMN SALES_RETURN_APPLY_DETAIL_EXT.DELIVERY_NO IS '???? ???,??';

COMMENT ON TABLE SALES_RETURN_APPLY_DETAIL_EXT IS '???????';

-- ----------------------------
-- Table structure for SALES_RETURN_IN
-- ----------------------------
CREATE TABLE SALES_RETURN_IN (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
APPLY_ID VARCHAR2(20 BYTE) VISIBLE,
RETURN_NO VARCHAR2(30 BYTE) VISIBLE,
USER_ID VARCHAR2(20 BYTE) VISIBLE,
USER_NAME VARCHAR2(200 BYTE) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
ORG_NAME VARCHAR2(200 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE,
UPDATE_TIME DATE VISIBLE,
STATUS NUMBER VISIBLE DEFAULT 0  ,
IS_IN NUMBER(1,0) VISIBLE DEFAULT 0  ,
WAREHOUSE_CODE VARCHAR2(30 BYTE) VISIBLE,
APPLY_NO VARCHAR2(30 BYTE) VISIBLE,
REMARK VARCHAR2(500 BYTE) VISIBLE,
DEPT VARCHAR2(30 BYTE) VISIBLE,
IN_AREA VARCHAR2(60 BYTE) VISIBLE,
SAP_IN_AREA VARCHAR2(100 BYTE) VISIBLE,
SAP_ORDER_NO VARCHAR2(50 BYTE) VISIBLE,
POSTING_STATE NUMBER(1,0) VISIBLE DEFAULT 0,
SAP_ERROR_MSG VARCHAR2(500 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN SALES_RETURN_IN.ID IS 'ID';

COMMENT ON COLUMN SALES_RETURN_IN.APPLY_ID IS '????ID';

COMMENT ON COLUMN SALES_RETURN_IN.RETURN_NO IS '??????';

COMMENT ON COLUMN SALES_RETURN_IN.USER_ID IS '???';

COMMENT ON COLUMN SALES_RETURN_IN.USER_NAME IS '?????';

COMMENT ON COLUMN SALES_RETURN_IN.ORG_ID IS '????ID';

COMMENT ON COLUMN SALES_RETURN_IN.ORG_NAME IS '????';

COMMENT ON COLUMN SALES_RETURN_IN.CREATE_TIME IS '????';

COMMENT ON COLUMN SALES_RETURN_IN.UPDATE_TIME IS '????';

COMMENT ON COLUMN SALES_RETURN_IN.STATUS IS '??? 0????1?????2???';

COMMENT ON COLUMN SALES_RETURN_IN.IS_IN IS '?????0????1????2?????';

COMMENT ON COLUMN SALES_RETURN_IN.WAREHOUSE_CODE IS '??';

COMMENT ON COLUMN SALES_RETURN_IN.APPLY_NO IS '??????';

COMMENT ON COLUMN SALES_RETURN_IN.DEPT IS '????';

COMMENT ON COLUMN SALES_RETURN_IN.IN_AREA IS '??';

COMMENT ON COLUMN SALES_RETURN_IN.SAP_IN_AREA IS 'sap';

COMMENT ON COLUMN SALES_RETURN_IN.SAP_ORDER_NO IS '???sap??????';

COMMENT ON COLUMN SALES_RETURN_IN.POSTING_STATE IS '???? 0???1???2????';

COMMENT ON COLUMN SALES_RETURN_IN.SAP_ERROR_MSG IS '??SAP???????';

COMMENT ON COLUMN SALES_RETURN_IN.IS_DEL IS '????';

COMMENT ON TABLE SALES_RETURN_IN IS '?????';

-- ----------------------------
-- Table structure for SALES_RETURN_IN_DETAIL
-- ----------------------------
CREATE TABLE SALES_RETURN_IN_DETAIL (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
RETURN_NO VARCHAR2(30 BYTE) VISIBLE,
MATERIALS_NO VARCHAR2(30 BYTE) VISIBLE,
MATERIALS_TYPE VARCHAR2(60 BYTE) VISIBLE,
MATERIALS_DES VARCHAR2(255 BYTE) VISIBLE,
UNIT VARCHAR2(30 BYTE) VISIBLE,
THIS_RETURN NUMBER(14,3) VISIBLE DEFAULT 0  ,
IN_QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
STATUS NUMBER VISIBLE DEFAULT 0  ,
APPLY_DETAIL_ID VARCHAR2(20 BYTE) VISIBLE,
PRICE_SCHEME_ID VARCHAR2(18 CHAR) VISIBLE,
PRICE_SCHEME_NAME VARCHAR2(100 CHAR) VISIBLE,
PRICE NUMBER(14,3) VISIBLE,
LATEST_IN_TIME TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.ID IS 'ID';

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.RETURN_NO IS '?????ID';

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.MATERIALS_NO IS '????';

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.MATERIALS_DES IS '????';

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.UNIT IS '??';

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.THIS_RETURN IS '????????';

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.IN_QTY IS '??????';

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.STATUS IS '?? 0???1????2??';

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.APPLY_DETAIL_ID IS '???????ID';

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.PRICE_SCHEME_ID IS '????id';

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.PRICE_SCHEME_NAME IS '??????';

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.PRICE IS '??';

COMMENT ON COLUMN SALES_RETURN_IN_DETAIL.LATEST_IN_TIME IS '??????????????';

COMMENT ON TABLE SALES_RETURN_IN_DETAIL IS '???????';

-- ----------------------------
-- Table structure for SALES_RETURN_IN_NEW
-- ----------------------------
CREATE TABLE SALES_RETURN_IN_NEW (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
APPLY_ID VARCHAR2(20 BYTE) VISIBLE,
RETURN_NO VARCHAR2(30 BYTE) VISIBLE,
USER_ID VARCHAR2(20 BYTE) VISIBLE,
USER_NAME VARCHAR2(200 BYTE) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
ORG_NAME VARCHAR2(200 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE,
UPDATE_TIME DATE VISIBLE,
STATUS NUMBER VISIBLE,
IS_IN NUMBER(1,0) VISIBLE,
WAREHOUSE_CODE VARCHAR2(30 BYTE) VISIBLE,
APPLY_NO VARCHAR2(30 BYTE) VISIBLE,
REMARK VARCHAR2(500 BYTE) VISIBLE,
DEPT VARCHAR2(30 BYTE) VISIBLE,
IN_AREA VARCHAR2(60 BYTE) VISIBLE,
SAP_IN_AREA VARCHAR2(100 BYTE) VISIBLE,
SAP_ORDER_NO VARCHAR2(50 BYTE) VISIBLE,
POSTING_STATE NUMBER(1,0) VISIBLE,
SAP_ERROR_MSG VARCHAR2(500 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE
);

COMMENT ON TABLE SALES_RETURN_IN_NEW IS '//SALES_RETURN_IN_NEW';

-- ----------------------------
-- Table structure for SALES_RETURN_VERIFICATION
-- ----------------------------
CREATE TABLE SALES_RETURN_VERIFICATION (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SALES_RETURN_ORDER VARCHAR2(30 CHAR) VISIBLE,
ORGID VARCHAR2(20 CHAR) VISIBLE,
DEALER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
RETURN_PRICE NUMBER(16,4) VISIBLE,
VERIFICATION_PRICE NUMBER(16,4) VISIBLE,
STATUS NUMBER(1,0) VISIBLE,
REMARK VARCHAR2(100 BYTE) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
VERIFICAT_ID VARCHAR2(30 CHAR) VISIBLE,
RETURN_TIME TIMESTAMP(6) VISIBLE,
CREATE_TIME TIMESTAMP(6) VISIBLE,
VERIFICAT_TIME TIMESTAMP(6) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0  ,
DEALER_ORG_NAME VARCHAR2(100 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(100 BYTE) VISIBLE,
VERIFICAT_NAME VARCHAR2(100 BYTE) VISIBLE,
PAY_PERSION VARCHAR2(255 BYTE) VISIBLE,
PAY_TYPE NUMBER(2,0) VISIBLE,
AGENT_NAME VARCHAR2(15 BYTE) VISIBLE,
AGENT_TIME TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.ID IS 'ID';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.SALES_RETURN_ORDER IS '??????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.ORGID IS '????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.DEALER_ORG_ID IS '????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.RETURN_PRICE IS '????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.VERIFICATION_PRICE IS '?????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.STATUS IS '???0????1?????2????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.REMARK IS '??';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.CREATE_ID IS '???';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.VERIFICAT_ID IS '???';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.RETURN_TIME IS '????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.CREATE_TIME IS '????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.VERIFICAT_TIME IS '????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.IS_DEL IS '????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.DEALER_ORG_NAME IS '????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.CREATE_NAME IS '?????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.VERIFICAT_NAME IS '?????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.PAY_PERSION IS '????';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.PAY_TYPE IS '???? 1??  2?? 3?? 4?? 5?? 6?? 7??? 8???? 9?? 10???? 11?? 12??';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.AGENT_NAME IS '???';

COMMENT ON COLUMN SALES_RETURN_VERIFICATION.AGENT_TIME IS '????';

COMMENT ON TABLE SALES_RETURN_VERIFICATION IS '???????';

-- ----------------------------
-- Table structure for SALES_RETURN_VERIFY_DETAIL
-- ----------------------------
CREATE TABLE SALES_RETURN_VERIFY_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SALES_RETURN_ORDER VARCHAR2(30 BYTE) VISIBLE,
THIS_PRICE NUMBER(14,3) VISIBLE,
CREATE_ID VARCHAR2(30 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(30 BYTE) VISIBLE,
REMARK VARCHAR2(100 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE
);

COMMENT ON COLUMN SALES_RETURN_VERIFY_DETAIL.ID IS 'ID';

COMMENT ON COLUMN SALES_RETURN_VERIFY_DETAIL.SALES_RETURN_ORDER IS '????????';

COMMENT ON COLUMN SALES_RETURN_VERIFY_DETAIL.THIS_PRICE IS '??????';

COMMENT ON COLUMN SALES_RETURN_VERIFY_DETAIL.CREATE_ID IS '???id';

COMMENT ON COLUMN SALES_RETURN_VERIFY_DETAIL.CREATE_NAME IS '???';

COMMENT ON COLUMN SALES_RETURN_VERIFY_DETAIL.REMARK IS '??';

COMMENT ON COLUMN SALES_RETURN_VERIFY_DETAIL.CREATE_TIME IS '????';

COMMENT ON TABLE SALES_RETURN_VERIFY_DETAIL IS '//SALES_RETURN_VERIFY_DETAIL';

-- ----------------------------
-- Table structure for SCORE_INFO
-- ----------------------------
CREATE TABLE SCORE_INFO (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
RATING_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CLIENT_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CLIENT_NAME VARCHAR2(100 CHAR) VISIBLE,
SALES_COMPLETION NUMBER(6,0) VISIBLE DEFAULT 0,
MONTH_PLAN_ACCURACY NUMBER(6,0) VISIBLE DEFAULT 0,
ORDER_MANAGER_NORMATIVE NUMBER(6,0) VISIBLE DEFAULT 0,
ACCOUNTS_OVERDUE NUMBER(6,0) VISIBLE DEFAULT 0,
SALES_COMPLETION_RATE NUMBER(6,0) VISIBLE DEFAULT 0,
INVENTORY_BUSINESS NUMBER(6,0) VISIBLE DEFAULT 0,
TOTAL_SCORE NUMBER(6,0) VISIBLE DEFAULT 0,
RANKING NUMBER(6,0) VISIBLE DEFAULT 0,
GRADE VARCHAR2(1 BYTE) VISIBLE,
CREATOR_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 CHAR) VISIBLE,
MODIFIER_NAME VARCHAR2(50 CHAR) VISIBLE,
MODIFY_TIME DATE VISIBLE
);

COMMENT ON COLUMN SCORE_INFO.ID IS '非业务主键id';

COMMENT ON COLUMN SCORE_INFO.RATING_ID IS '评级信息id';

COMMENT ON COLUMN SCORE_INFO.CLIENT_ID IS '客户id';

COMMENT ON COLUMN SCORE_INFO.CLIENT_NAME IS '????';

COMMENT ON COLUMN SCORE_INFO.SALES_COMPLETION IS '??????';

COMMENT ON COLUMN SCORE_INFO.MONTH_PLAN_ACCURACY IS '???????';

COMMENT ON COLUMN SCORE_INFO.ORDER_MANAGER_NORMATIVE IS '???????';

COMMENT ON COLUMN SCORE_INFO.ACCOUNTS_OVERDUE IS '??????';

COMMENT ON COLUMN SCORE_INFO.SALES_COMPLETION_RATE IS '???????';

COMMENT ON COLUMN SCORE_INFO.INVENTORY_BUSINESS IS '?????????????';

COMMENT ON COLUMN SCORE_INFO.TOTAL_SCORE IS '???';

COMMENT ON COLUMN SCORE_INFO.RANKING IS '??';

COMMENT ON COLUMN SCORE_INFO.GRADE IS '??';

COMMENT ON COLUMN SCORE_INFO.CREATOR_ID IS '创建人id';

COMMENT ON COLUMN SCORE_INFO.CREATOR_NAME IS '创建人姓名';

COMMENT ON COLUMN SCORE_INFO.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN SCORE_INFO.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN SCORE_INFO.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN SCORE_INFO.MODIFY_TIME IS '????';

COMMENT ON TABLE SCORE_INFO IS '?????';

-- ----------------------------
-- Table structure for SECOND_AGENT_RELATION
-- ----------------------------
CREATE TABLE SECOND_AGENT_RELATION (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
OEM_ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
CREATE_BY VARCHAR2(20 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE,
UPDATE_BY VARCHAR2(20 BYTE) VISIBLE,
UPDATE_TIME DATE VISIBLE,
DEL_FLAG NUMBER(1,0) VISIBLE DEFAULT '0'
);

COMMENT ON COLUMN SECOND_AGENT_RELATION.ID IS '主键';

COMMENT ON COLUMN SECOND_AGENT_RELATION.OEM_ORG_ID IS '主机厂orgId';

COMMENT ON COLUMN SECOND_AGENT_RELATION.ORG_ID IS '自己的orgId';

COMMENT ON TABLE SECOND_AGENT_RELATION IS '//SECOND_AGENT_RELATION';

-- ----------------------------
-- Table structure for SEND_BILL
-- ----------------------------
CREATE TABLE SEND_BILL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SEND_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
IS_SIGN NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
IS_DELIVERY NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
SEND_TYPE NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
SOLD_ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SOLD_ORG_NAME VARCHAR2(255 CHAR) VISIBLE NOT NULL,
APPLY_ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
APPLY_ORG_NAME VARCHAR2(255 CHAR) VISIBLE NOT NULL,
DELIVERY_ORG_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
DELIVERY_ORG_NAME VARCHAR2(255 CHAR) VISIBLE NOT NULL,
LOGISTICS_COMPANY VARCHAR2(255 CHAR) VISIBLE,
LOGISTICS_ORDER VARCHAR2(30 CHAR) VISIBLE,
CONTACT_USER VARCHAR2(200 CHAR) VISIBLE,
CONTACT_TEL VARCHAR2(30 CHAR) VISIBLE,
ADDRESS VARCHAR2(255 CHAR) VISIBLE,
DELIVERY_DATE TIMESTAMP(6) VISIBLE,
NOTE VARCHAR2(500 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(255 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE,
SIGN_DATE TIMESTAMP(6) VISIBLE,
SIGN_USER VARCHAR2(255 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE DEFAULT 0,
POSTING_STATE NUMBER(1,0) VISIBLE DEFAULT 0,
SIGN_NOTE VARCHAR2(300 BYTE) VISIBLE,
IS_GENERATE_ORDER NUMBER(1,0) VISIBLE DEFAULT 0,
SEND_TIME DATE VISIBLE,
IS_SUBMIT NUMBER(1,0) VISIBLE DEFAULT 0,
OUTBOUND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
IS_ARRIVAL NUMBER(1,0) VISIBLE DEFAULT 0,
ARRIVAL_DATE TIMESTAMP(6) VISIBLE,
CARRIER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
CARRIER_ORG_NAME VARCHAR2(100 BYTE) VISIBLE,
SALES_CODE VARCHAR2(64 BYTE) VISIBLE,
SALES_CODE_DES VARCHAR2(255 BYTE) VISIBLE
);

COMMENT ON COLUMN SEND_BILL.ID IS '主键id';

COMMENT ON COLUMN SEND_BILL.SEND_ORDER IS '送货单号';

COMMENT ON COLUMN SEND_BILL.IS_SIGN IS '是否签收 0否1是';

COMMENT ON COLUMN SEND_BILL.STATUS IS '入库状态 0未入库1部分入库2已入库';

COMMENT ON COLUMN SEND_BILL.IS_DELIVERY IS '是否发货 0否1是';

COMMENT ON COLUMN SEND_BILL.SEND_TYPE IS '送货单类型 0普通1直投';

COMMENT ON COLUMN SEND_BILL.SOLD_ORG_ID IS '供应商id';

COMMENT ON COLUMN SEND_BILL.SOLD_ORG_NAME IS '供应商名称';

COMMENT ON COLUMN SEND_BILL.APPLY_ORG_ID IS '申请单位（主机厂）id';

COMMENT ON COLUMN SEND_BILL.APPLY_ORG_NAME IS '申请单位（主机厂）名称';

COMMENT ON COLUMN SEND_BILL.DELIVERY_ORG_ID IS '收货方（代理商）id';

COMMENT ON COLUMN SEND_BILL.DELIVERY_ORG_NAME IS '收货方（代理商）名称';

COMMENT ON COLUMN SEND_BILL.LOGISTICS_COMPANY IS '??????';

COMMENT ON COLUMN SEND_BILL.LOGISTICS_ORDER IS '????';

COMMENT ON COLUMN SEND_BILL.CONTACT_USER IS '???';

COMMENT ON COLUMN SEND_BILL.CONTACT_TEL IS '????';

COMMENT ON COLUMN SEND_BILL.ADDRESS IS '??';

COMMENT ON COLUMN SEND_BILL.DELIVERY_DATE IS '??????';

COMMENT ON COLUMN SEND_BILL.NOTE IS '??';

COMMENT ON COLUMN SEND_BILL.CREATE_ID IS '???id';

COMMENT ON COLUMN SEND_BILL.CREATE_NAME IS '?????';

COMMENT ON COLUMN SEND_BILL.CREATE_DATE IS '????';

COMMENT ON COLUMN SEND_BILL.SIGN_DATE IS '????';

COMMENT ON COLUMN SEND_BILL.SIGN_USER IS '???';

COMMENT ON COLUMN SEND_BILL.IS_DEL IS '???? 0?1?';

COMMENT ON COLUMN SEND_BILL.POSTING_STATE IS '???? 0???1????2???';

COMMENT ON COLUMN SEND_BILL.SIGN_NOTE IS '????';

COMMENT ON COLUMN SEND_BILL.IS_GENERATE_ORDER IS '?????????? 0?1?';

COMMENT ON COLUMN SEND_BILL.SEND_TIME IS '????';

COMMENT ON COLUMN SEND_BILL.IS_SUBMIT IS '???? 0? 1?';

COMMENT ON COLUMN SEND_BILL.OUTBOUND_STATUS IS '???? 0??? 1???? 2???';

COMMENT ON COLUMN SEND_BILL.IS_ARRIVAL IS '???? 0? 1?';

COMMENT ON COLUMN SEND_BILL.ARRIVAL_DATE IS '??????';

COMMENT ON COLUMN SEND_BILL.CARRIER_ORG_ID IS '???id';

COMMENT ON COLUMN SEND_BILL.CARRIER_ORG_NAME IS '?????';

COMMENT ON COLUMN SEND_BILL.SALES_CODE IS '??????';

COMMENT ON COLUMN SEND_BILL.SALES_CODE_DES IS '??????';

COMMENT ON TABLE SEND_BILL IS '?????';

-- ----------------------------
-- Table structure for SEND_BILL_DETAIL
-- ----------------------------
CREATE TABLE SEND_BILL_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MAIN_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SOURCE_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SOURCE_ORDER VARCHAR2(30 CHAR) VISIBLE NOT NULL,
ROW_NO NUMBER(5,0) VISIBLE NOT NULL,
MATERIALS_NO VARCHAR2(30 CHAR) VISIBLE NOT NULL,
MATERIALS_DES VARCHAR2(200 CHAR) VISIBLE NOT NULL,
MATERIALS_TYPE VARCHAR2(200 CHAR) VISIBLE,
UNIT VARCHAR2(200 CHAR) VISIBLE,
STATUS NUMBER(1,0) VISIBLE DEFAULT 0  ,
QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
REAL_QTY NUMBER(14,3) VISIBLE DEFAULT 0  ,
SOURCE_ROW_NO NUMBER(5,0) VISIBLE,
POSTING_STATE NUMBER(1,0) VISIBLE DEFAULT 0,
POSTING_NUM NUMBER(14,3) VISIBLE DEFAULT 0,
VOUCHER_NO VARCHAR2(30 CHAR) VISIBLE,
SAP_ERROR_MSG VARCHAR2(500 CHAR) VISIBLE,
INITIAL_ORDER VARCHAR2(30 BYTE) VISIBLE,
CUSTOM_MATERIALS_NO VARCHAR2(60 BYTE) VISIBLE,
POST_DATE TIMESTAMP(7) VISIBLE,
OUTBOUND_STATUS NUMBER(1,0) VISIBLE DEFAULT 0,
OUTBOUND_QTY NUMBER(14,0) VISIBLE DEFAULT 0 ,
SIGN_QTY NUMBER(14,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN SEND_BILL_DETAIL.ID IS '主键id';

COMMENT ON COLUMN SEND_BILL_DETAIL.MAIN_ID IS '主表id';

COMMENT ON COLUMN SEND_BILL_DETAIL.SOURCE_ID IS '来源采购单主表id';

COMMENT ON COLUMN SEND_BILL_DETAIL.SOURCE_ORDER IS '主机厂根据代理商的直投单，向供应商下的直投单号';

COMMENT ON COLUMN SEND_BILL_DETAIL.ROW_NO IS '行号';

COMMENT ON COLUMN SEND_BILL_DETAIL.MATERIALS_NO IS '物料编码';

COMMENT ON COLUMN SEND_BILL_DETAIL.MATERIALS_DES IS '物料描述';

COMMENT ON COLUMN SEND_BILL_DETAIL.MATERIALS_TYPE IS '????';

COMMENT ON COLUMN SEND_BILL_DETAIL.UNIT IS '??';

COMMENT ON COLUMN SEND_BILL_DETAIL.STATUS IS '???? 0???1????2???';

COMMENT ON COLUMN SEND_BILL_DETAIL.QTY IS '????';

COMMENT ON COLUMN SEND_BILL_DETAIL.REAL_QTY IS '??????';

COMMENT ON COLUMN SEND_BILL_DETAIL.SOURCE_ROW_NO IS '????????';

COMMENT ON COLUMN SEND_BILL_DETAIL.POSTING_STATE IS '???? 0???1????2???';

COMMENT ON COLUMN SEND_BILL_DETAIL.POSTING_NUM IS '?????';

COMMENT ON COLUMN SEND_BILL_DETAIL.VOUCHER_NO IS '????';

COMMENT ON COLUMN SEND_BILL_DETAIL.SAP_ERROR_MSG IS 'sap???????????';

COMMENT ON COLUMN SEND_BILL_DETAIL.INITIAL_ORDER IS '???????????';

COMMENT ON COLUMN SEND_BILL_DETAIL.CUSTOM_MATERIALS_NO IS '???????';

COMMENT ON COLUMN SEND_BILL_DETAIL.POST_DATE IS '????';

COMMENT ON COLUMN SEND_BILL_DETAIL.OUTBOUND_STATUS IS '???? 0??? 1???? 2???';

COMMENT ON COLUMN SEND_BILL_DETAIL.OUTBOUND_QTY IS '????';

COMMENT ON COLUMN SEND_BILL_DETAIL.SIGN_QTY IS '????';

COMMENT ON TABLE SEND_BILL_DETAIL IS '??????';

-- ----------------------------
-- Table structure for SLUGGISH_SHARD
-- ----------------------------
CREATE TABLE SLUGGISH_SHARD (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
ORGID VARCHAR2(20 BYTE) VISIBLE,
MATERIAL_NO VARCHAR2(20 BYTE) VISIBLE,
MATERIAL_NAME VARCHAR2(100 BYTE) VISIBLE,
UNSALABLE_QTY NUMBER(18,6) VISIBLE,
UNSALABLE_PRICE NUMBER(18,6) VISIBLE,
AMOUNT NUMBER(18,6) VISIBLE,
WAREHOUSE_INVENTORY_ID VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN SLUGGISH_SHARD.ID IS 'ID';

COMMENT ON COLUMN SLUGGISH_SHARD.ORGID IS '??ORG_ID';

COMMENT ON COLUMN SLUGGISH_SHARD.MATERIAL_NO IS '???';

COMMENT ON COLUMN SLUGGISH_SHARD.MATERIAL_NAME IS '????';

COMMENT ON COLUMN SLUGGISH_SHARD.UNSALABLE_QTY IS '????';

COMMENT ON COLUMN SLUGGISH_SHARD.UNSALABLE_PRICE IS '????';

COMMENT ON COLUMN SLUGGISH_SHARD.AMOUNT IS '??????';

COMMENT ON TABLE SLUGGISH_SHARD IS '????';

-- ----------------------------
-- Table structure for STOCK_BUSINESS_DETAIL
-- ----------------------------
CREATE TABLE STOCK_BUSINESS_DETAIL (
ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
SCORE_INFO_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
STOCK_SCORE NUMBER(6,0) VISIBLE DEFAULT 0,
CRITERION_SCORE NUMBER(6,0) VISIBLE DEFAULT 0,
REMARK VARCHAR2(100 CHAR) VISIBLE,
SCORE NUMBER(6,0) VISIBLE DEFAULT 0,
CREATOR_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
CREATOR_NAME VARCHAR2(50 CHAR) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE NOT NULL,
MODIFIER_ID VARCHAR2(30 CHAR) VISIBLE,
MODIFIER_NAME VARCHAR2(50 CHAR) VISIBLE,
MODIFY_TIME DATE VISIBLE
);

COMMENT ON COLUMN STOCK_BUSINESS_DETAIL.ID IS '非业务主键id';

COMMENT ON COLUMN STOCK_BUSINESS_DETAIL.SCORE_INFO_ID IS '评分信息id';

COMMENT ON COLUMN STOCK_BUSINESS_DETAIL.STOCK_SCORE IS '??????';

COMMENT ON COLUMN STOCK_BUSINESS_DETAIL.CRITERION_SCORE IS '????????';

COMMENT ON COLUMN STOCK_BUSINESS_DETAIL.REMARK IS '??';

COMMENT ON COLUMN STOCK_BUSINESS_DETAIL.SCORE IS '??';

COMMENT ON COLUMN STOCK_BUSINESS_DETAIL.CREATOR_ID IS '创建人id';

COMMENT ON COLUMN STOCK_BUSINESS_DETAIL.CREATOR_NAME IS '创建人姓名';

COMMENT ON COLUMN STOCK_BUSINESS_DETAIL.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN STOCK_BUSINESS_DETAIL.MODIFIER_ID IS '???ID';

COMMENT ON COLUMN STOCK_BUSINESS_DETAIL.MODIFIER_NAME IS '?????';

COMMENT ON COLUMN STOCK_BUSINESS_DETAIL.MODIFY_TIME IS '????';

COMMENT ON TABLE STOCK_BUSINESS_DETAIL IS '???????????????';

-- ----------------------------
-- Table structure for SUPPLIER_CLASS
-- ----------------------------
CREATE TABLE SUPPLIER_CLASS (
ID NUMBER(10,0) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
P_ID NUMBER(10,0) VISIBLE,
CLASS_NAME VARCHAR2(64 CHAR) VISIBLE,
CLASS_CODE VARCHAR2(20 CHAR) VISIBLE,
CLASS_VALUE VARCHAR2(200 CHAR) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE,
CREATE_DATE DATE VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE
);

COMMENT ON COLUMN SUPPLIER_CLASS.ID IS 'id';

COMMENT ON COLUMN SUPPLIER_CLASS.ORG_ID IS '????';

COMMENT ON COLUMN SUPPLIER_CLASS.P_ID IS '??id';

COMMENT ON COLUMN SUPPLIER_CLASS.CLASS_NAME IS '????';

COMMENT ON COLUMN SUPPLIER_CLASS.CLASS_CODE IS '????';

COMMENT ON COLUMN SUPPLIER_CLASS.CLASS_VALUE IS '??????';

COMMENT ON COLUMN SUPPLIER_CLASS.IS_DEL IS '????';

COMMENT ON COLUMN SUPPLIER_CLASS.CREATE_DATE IS '????';

COMMENT ON COLUMN SUPPLIER_CLASS.CREATE_ID IS '???';

COMMENT ON COLUMN SUPPLIER_CLASS.UPDATE_DATE IS '????';

COMMENT ON COLUMN SUPPLIER_CLASS.UPDATE_ID IS '???';

COMMENT ON TABLE SUPPLIER_CLASS IS '??????';

-- ----------------------------
-- Table structure for SYS_AREA
-- ----------------------------
CREATE TABLE SYS_AREA (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
P_ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
CODE VARCHAR2(30 BYTE) VISIBLE NOT NULL,
NAME VARCHAR2(100 BYTE) VISIBLE,
ALL_ID VARCHAR2(500 BYTE) VISIBLE,
LEV VARCHAR2(10 BYTE) VISIBLE,
CREATE_TIME DATE VISIBLE NOT NULL,
CREATE_USER VARCHAR2(30 BYTE) VISIBLE NOT NULL,
IS_DEL CHAR(1 BYTE) VISIBLE DEFAULT 0   NOT NULL
);

COMMENT ON COLUMN SYS_AREA.ID IS '主键';

COMMENT ON COLUMN SYS_AREA.P_ID IS '父主键';

COMMENT ON COLUMN SYS_AREA.CODE IS '地址编码';

COMMENT ON COLUMN SYS_AREA.NAME IS '????';

COMMENT ON COLUMN SYS_AREA.ALL_ID IS '???-??';

COMMENT ON COLUMN SYS_AREA.LEV IS '?? 0 ?? 1 ?? 2 ?? 3 ??';

COMMENT ON COLUMN SYS_AREA.CREATE_TIME IS '创建时间';

COMMENT ON COLUMN SYS_AREA.CREATE_USER IS '创建人';

COMMENT ON TABLE SYS_AREA IS '???';

-- ----------------------------
-- Table structure for SYS_ITERATION_TIP
-- ----------------------------
CREATE TABLE SYS_ITERATION_TIP (
CREATE_TIME TIMESTAMP(6) VISIBLE,
ITERATE_SCOPES VARCHAR2(200 BYTE) VISIBLE,
ITERATE_TIME VARCHAR2(50 BYTE) VISIBLE,
ITERATE_CONTENTS VARCHAR2(4000 BYTE) VISIBLE,
IS_DEL NUMBER(1,0) VISIBLE
);

COMMENT ON COLUMN SYS_ITERATION_TIP.CREATE_TIME IS '????';

COMMENT ON COLUMN SYS_ITERATION_TIP.ITERATE_SCOPES IS '??????,??json????';

COMMENT ON COLUMN SYS_ITERATION_TIP.ITERATE_TIME IS '????????2020-10-22 00:00:00 - 2020-10-22 05:00:00';

COMMENT ON COLUMN SYS_ITERATION_TIP.ITERATE_CONTENTS IS '????,??Json????';

COMMENT ON COLUMN SYS_ITERATION_TIP.IS_DEL IS '?????0?????1????';

COMMENT ON TABLE SYS_ITERATION_TIP IS '//SYS_ITERATION_TIP';

-- ----------------------------
-- Table structure for SYS_TEMP_FBT
-- ----------------------------
CREATE TABLE SYS_TEMP_FBT (
SCHEMA VARCHAR2(32 BYTE) VISIBLE,
OBJECT_NAME VARCHAR2(32 BYTE) VISIBLE,
OBJECT# NUMBER VISIBLE,
RID UROWID(4000) VISIBLE,
ACTION CHAR(1 BYTE) VISIBLE
)
NOLOGGING
NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT
)
PARALLEL 1
NOCACHE
DISABLE ROW MOVEMENT
;

COMMENT ON TABLE SYS_TEMP_FBT IS '//SYS_TEMP_FBT';

-- ----------------------------
-- Table structure for SYSTEM_PARAMETER
-- ----------------------------
CREATE TABLE SYSTEM_PARAMETER (
ID NUMBER(10,0) VISIBLE NOT NULL,
PARAM_TYPE VARCHAR2(50 BYTE) VISIBLE NOT NULL,
PARAM_NAME VARCHAR2(200 BYTE) VISIBLE NOT NULL,
PARAM_KEY NUMBER(3,0) VISIBLE NOT NULL,
PARAM_VALUE VARCHAR2(200 BYTE) VISIBLE NOT NULL,
PARAM_DESC VARCHAR2(500 BYTE) VISIBLE NOT NULL,
CREATE_TIME DATE VISIBLE DEFAULT sysdate  NOT NULL,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE DEFAULT '00000001'  NOT NULL,
CREATE_NAME VARCHAR2(50 BYTE) VISIBLE DEFAULT 'system'  NOT NULL,
UPDATE_TIME DATE VISIBLE DEFAULT sysdate  NOT NULL,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE DEFAULT '00000001'  NOT NULL,
UPDATE_NAME VARCHAR2(50 BYTE) VISIBLE DEFAULT 'system'  NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
REMARK VARCHAR2(500 BYTE) VISIBLE
);

COMMENT ON COLUMN SYSTEM_PARAMETER.ID IS '主键';

COMMENT ON COLUMN SYSTEM_PARAMETER.PARAM_TYPE IS '参数type，一组参数type定义为相同值';

COMMENT ON COLUMN SYSTEM_PARAMETER.PARAM_NAME IS '参数名，一组参数的name定义为相同值';

COMMENT ON COLUMN SYSTEM_PARAMETER.PARAM_KEY IS '参数key, org_id，param_type与param_key定义唯一参数';

COMMENT ON COLUMN SYSTEM_PARAMETER.PARAM_VALUE IS '参数值';

COMMENT ON COLUMN SYSTEM_PARAMETER.PARAM_DESC IS '参数值描述';

COMMENT ON COLUMN SYSTEM_PARAMETER.CREATE_TIME IS '添加时间';

COMMENT ON COLUMN SYSTEM_PARAMETER.CREATE_ID IS '添加人id';

COMMENT ON COLUMN SYSTEM_PARAMETER.CREATE_NAME IS '添加人名称';

COMMENT ON COLUMN SYSTEM_PARAMETER.UPDATE_TIME IS '修改时间';

COMMENT ON COLUMN SYSTEM_PARAMETER.UPDATE_ID IS '修改人id';

COMMENT ON COLUMN SYSTEM_PARAMETER.UPDATE_NAME IS '修改时间';

COMMENT ON COLUMN SYSTEM_PARAMETER.ORG_ID IS '公司ID, 对应company_info.org_id，公用参数则为空';

COMMENT ON COLUMN SYSTEM_PARAMETER.REMARK IS '??';

COMMENT ON TABLE SYSTEM_PARAMETER IS '?????';

-- ----------------------------
-- Table structure for T_BARCODE_WX_QUERY_TIMES
-- ----------------------------
CREATE TABLE T_BARCODE_WX_QUERY_TIMES (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
BAR_CODE VARCHAR2(255 BYTE) VISIBLE,
WX_QUERY_TIMES NUMBER(10,0) VISIBLE,
CREATE_USER VARCHAR2(255 BYTE) VISIBLE,
CREATE_TIME TIMESTAMP(6) VISIBLE,
UPDATE_USER VARCHAR2(255 BYTE) VISIBLE,
UPDATE_TIME TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN T_BARCODE_WX_QUERY_TIMES.WX_QUERY_TIMES IS '????????';

COMMENT ON COLUMN T_BARCODE_WX_QUERY_TIMES.CREATE_USER IS '???';

COMMENT ON COLUMN T_BARCODE_WX_QUERY_TIMES.CREATE_TIME IS '????';

COMMENT ON COLUMN T_BARCODE_WX_QUERY_TIMES.UPDATE_USER IS '???';

COMMENT ON COLUMN T_BARCODE_WX_QUERY_TIMES.UPDATE_TIME IS '????';

COMMENT ON TABLE T_BARCODE_WX_QUERY_TIMES IS '??????????';

-- ----------------------------
-- Table structure for T_BASIC_ANNOUNCEMENT
-- ----------------------------
CREATE TABLE T_BASIC_ANNOUNCEMENT (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
TITLE VARCHAR2(400 CHAR) VISIBLE,
TYPE VARCHAR2(20 CHAR) VISIBLE,
BODY CLOB VISIBLE,
CLICK VARCHAR2(400 CHAR) VISIBLE,
REMARK VARCHAR2(2000 CHAR) VISIBLE,
STATUS VARCHAR2(20 CHAR) VISIBLE,
VALIDATE_START DATE VISIBLE,
VALIDATE_END DATE VISIBLE,
PX NUMBER VISIBLE,
IS_DEL NUMBER VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(100 CHAR) VISIBLE,
CREATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
IS_SHOW NUMBER(1,0) VISIBLE DEFAULT 1,
AUTH_DEALER_ALL NUMBER(1,0) VISIBLE DEFAULT 0,
AUTH_USER_ALL NUMBER(1,0) VISIBLE DEFAULT 0,
IS_DOWNLOAD NUMBER(1,0) VISIBLE DEFAULT 1,
TITLE_IMAGE VARCHAR2(500 BYTE) VISIBLE,
AUTH_CUSTOMER_ALL NUMBER(1,0) VISIBLE DEFAULT 0
);

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.ID IS 'ID';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.ORG_ID IS '企业ID';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.TITLE IS '标题';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.TYPE IS '通告类型';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.BODY IS '正文';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.CLICK IS '链接';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.REMARK IS '备注';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.STATUS IS '有效期开始';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.VALIDATE_START IS '有效期结束';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.VALIDATE_END IS '状态';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.PX IS '排序';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.IS_DEL IS '是否删除';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.CREATE_ID IS '创建人ID';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.CREATE_NAME IS '创建人姓名';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.CREATE_DATE IS '创建时间';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.UPDATE_ID IS '修改人';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.UPDATE_DATE IS '修改时间';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.IS_SHOW IS '是否显示：0不显示，1显示';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.AUTH_DEALER_ALL IS '是否对所有供应商展示 0否1是';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.AUTH_USER_ALL IS '是否对所有系统内用户展示 0否1是';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.IS_DOWNLOAD IS '是否允许下载 0 否 1是';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.TITLE_IMAGE IS '???';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT.AUTH_CUSTOMER_ALL IS '????????????? 0? 1?';

COMMENT ON TABLE T_BASIC_ANNOUNCEMENT IS '通知公告表';

-- ----------------------------
-- Table structure for T_BASIC_ANNOUNCEMENT_AUTH
-- ----------------------------
CREATE TABLE T_BASIC_ANNOUNCEMENT_AUTH (
ID VARCHAR2(30 BYTE) VISIBLE NOT NULL,
MAIN_ID VARCHAR2(30 CHAR) VISIBLE NOT NULL,
AUTH_TYPE NUMBER(1,0) VISIBLE DEFAULT 0   NOT NULL,
DEALER_ORG_ID VARCHAR2(30 BYTE) VISIBLE,
DEALER_ORG_CODE VARCHAR2(30 CHAR) VISIBLE,
DEALER_ORG_NAME VARCHAR2(150 CHAR) VISIBLE,
USER_ID VARCHAR2(30 BYTE) VISIBLE,
USER_NAME VARCHAR2(150 CHAR) VISIBLE,
DEPT VARCHAR2(150 CHAR) VISIBLE,
CREATE_NAME VARCHAR2(60 CHAR) VISIBLE,
CREATE_ID VARCHAR2(30 CHAR) VISIBLE,
CREATE_DATE TIMESTAMP(6) VISIBLE DEFAULT SYSTIMESTAMP  ,
DEALER_CLASS_NAME VARCHAR2(60 CHAR) VISIBLE,
CUSTOMER_ID VARCHAR2(20 BYTE) VISIBLE,
CUSTOMER_NAME VARCHAR2(255 BYTE) VISIBLE,
MOBILE_PHONE VARCHAR2(20 BYTE) VISIBLE
);

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT_AUTH.ID IS '主键id';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT_AUTH.MAIN_ID IS '公告表主键，对应T_BASIC_ANNOUNCEMENT.ID';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT_AUTH.AUTH_TYPE IS '认证类型 0代理商1用户';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT_AUTH.DEALER_ORG_ID IS '???orgid';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT_AUTH.USER_ID IS '??id';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT_AUTH.CUSTOMER_ID IS '??id';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT_AUTH.CUSTOMER_NAME IS '????';

COMMENT ON COLUMN T_BASIC_ANNOUNCEMENT_AUTH.MOBILE_PHONE IS '?????';

COMMENT ON TABLE T_BASIC_ANNOUNCEMENT_AUTH IS '????????????';

-- ----------------------------
-- Table structure for T_BASIC_ATTACHMENT
-- ----------------------------
CREATE TABLE T_BASIC_ATTACHMENT (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ANNOUNCEMENT_ID VARCHAR2(20 BYTE) VISIBLE,
NAME VARCHAR2(400 CHAR) VISIBLE,
VALUE VARCHAR2(400 CHAR) VISIBLE,
TYPE VARCHAR2(20 BYTE) VISIBLE,
REMARK VARCHAR2(2000 CHAR) VISIBLE,
PX NUMBER VISIBLE,
IS_DEL NUMBER VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(100 CHAR) VISIBLE,
CREATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
DOWNLOAD_URL VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN T_BASIC_ATTACHMENT.ID IS 'ID';

COMMENT ON COLUMN T_BASIC_ATTACHMENT.ANNOUNCEMENT_ID IS '?????ID';

COMMENT ON COLUMN T_BASIC_ATTACHMENT.NAME IS '????';

COMMENT ON COLUMN T_BASIC_ATTACHMENT.VALUE IS '???';

COMMENT ON COLUMN T_BASIC_ATTACHMENT.TYPE IS '????';

COMMENT ON COLUMN T_BASIC_ATTACHMENT.REMARK IS '??';

COMMENT ON COLUMN T_BASIC_ATTACHMENT.PX IS '??';

COMMENT ON COLUMN T_BASIC_ATTACHMENT.IS_DEL IS '????';

COMMENT ON COLUMN T_BASIC_ATTACHMENT.CREATE_ID IS '???ID';

COMMENT ON COLUMN T_BASIC_ATTACHMENT.CREATE_NAME IS '?????';

COMMENT ON COLUMN T_BASIC_ATTACHMENT.CREATE_DATE IS '????';

COMMENT ON COLUMN T_BASIC_ATTACHMENT.UPDATE_ID IS '???';

COMMENT ON COLUMN T_BASIC_ATTACHMENT.UPDATE_DATE IS '????';

COMMENT ON COLUMN T_BASIC_ATTACHMENT.DOWNLOAD_URL IS '????';

COMMENT ON TABLE T_BASIC_ATTACHMENT IS '???';

-- ----------------------------
-- Table structure for T_BASIC_COMMENT
-- ----------------------------
CREATE TABLE T_BASIC_COMMENT (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
ANNOUNCEMENT_ID VARCHAR2(20 BYTE) VISIBLE,
CONTENT VARCHAR2(4000 CHAR) VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
ORG_NAME VARCHAR2(400 CHAR) VISIBLE,
REMARK VARCHAR2(2000 CHAR) VISIBLE,
PX NUMBER VISIBLE,
IS_DEL NUMBER VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(100 CHAR) VISIBLE,
CREATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE
);

COMMENT ON COLUMN T_BASIC_COMMENT.ID IS 'ID';

COMMENT ON COLUMN T_BASIC_COMMENT.ANNOUNCEMENT_ID IS '?????ID';

COMMENT ON COLUMN T_BASIC_COMMENT.CONTENT IS '????';

COMMENT ON COLUMN T_BASIC_COMMENT.ORG_ID IS '???';

COMMENT ON COLUMN T_BASIC_COMMENT.ORG_NAME IS '????';

COMMENT ON COLUMN T_BASIC_COMMENT.REMARK IS '??';

COMMENT ON COLUMN T_BASIC_COMMENT.PX IS '??';

COMMENT ON COLUMN T_BASIC_COMMENT.IS_DEL IS '????';

COMMENT ON COLUMN T_BASIC_COMMENT.CREATE_ID IS '???ID';

COMMENT ON COLUMN T_BASIC_COMMENT.CREATE_NAME IS '?????';

COMMENT ON COLUMN T_BASIC_COMMENT.CREATE_DATE IS '????';

COMMENT ON COLUMN T_BASIC_COMMENT.UPDATE_ID IS '???';

COMMENT ON COLUMN T_BASIC_COMMENT.UPDATE_DATE IS '????';

COMMENT ON TABLE T_BASIC_COMMENT IS '???';

-- ----------------------------
-- Table structure for T_BILL_STOCK
-- ----------------------------
CREATE TABLE T_BILL_STOCK (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
BILL_NO VARCHAR2(64 BYTE) VISIBLE,
MATERIAL_CODE VARCHAR2(64 BYTE) VISIBLE,
QUANTITY NUMBER(14,4) VISIBLE
);

COMMENT ON COLUMN T_BILL_STOCK.ID IS '??';

COMMENT ON COLUMN T_BILL_STOCK.BILL_NO IS '??????';

COMMENT ON COLUMN T_BILL_STOCK.MATERIAL_CODE IS '????';

COMMENT ON COLUMN T_BILL_STOCK.QUANTITY IS '??';

COMMENT ON TABLE T_BILL_STOCK IS '???????';

-- ----------------------------
-- Table structure for T_DEFAULT_WAREHOUSE
-- ----------------------------
CREATE TABLE T_DEFAULT_WAREHOUSE (
WAREHOUSE_ID VARCHAR2(255 BYTE) VISIBLE NOT NULL,
WAREHOUSE_CODE VARCHAR2(255 BYTE) VISIBLE NOT NULL,
AREA_ID VARCHAR2(255 BYTE) VISIBLE,
AREA_CODE VARCHAR2(255 BYTE) VISIBLE,
LOCATION_CODE VARCHAR2(255 BYTE) VISIBLE,
ORG_ID VARCHAR2(255 BYTE) VISIBLE NOT NULL,
CREATED_BY VARCHAR2(255 BYTE) VISIBLE,
CREATED_TIME TIMESTAMP(6) VISIBLE,
UPDATED_BY VARCHAR2(255 BYTE) VISIBLE,
UPDATED_TIME TIMESTAMP(6) VISIBLE
);

COMMENT ON COLUMN T_DEFAULT_WAREHOUSE.WAREHOUSE_ID IS 'warehouseId';

COMMENT ON COLUMN T_DEFAULT_WAREHOUSE.WAREHOUSE_CODE IS 'warehouseCode';

COMMENT ON COLUMN T_DEFAULT_WAREHOUSE.AREA_ID IS 'areaId';

COMMENT ON COLUMN T_DEFAULT_WAREHOUSE.AREA_CODE IS 'areaCode';

COMMENT ON COLUMN T_DEFAULT_WAREHOUSE.LOCATION_CODE IS 'locationCode';

COMMENT ON COLUMN T_DEFAULT_WAREHOUSE.ORG_ID IS 'orgId';

COMMENT ON COLUMN T_DEFAULT_WAREHOUSE.CREATED_BY IS '???ID';

COMMENT ON COLUMN T_DEFAULT_WAREHOUSE.CREATED_TIME IS '????';

COMMENT ON COLUMN T_DEFAULT_WAREHOUSE.UPDATED_BY IS '???';

COMMENT ON COLUMN T_DEFAULT_WAREHOUSE.UPDATED_TIME IS '????';

COMMENT ON TABLE T_DEFAULT_WAREHOUSE IS '???????????';

-- ----------------------------
-- Table structure for T_LOGISTICS_BASICDATA
-- ----------------------------
CREATE TABLE T_LOGISTICS_BASICDATA (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
CARRIER_ORG_ID VARCHAR2(20 BYTE) VISIBLE,
CARRIER_ORG_NAME VARCHAR2(200 CHAR) VISIBLE,
DEPARTURE_CITY VARCHAR2(100 CHAR) VISIBLE,
DESTINATION_CITY VARCHAR2(100 CHAR) VISIBLE,
COMMITMENT_TIME NUMBER(10,1) VISIBLE,
MILEAGE NUMBER(14,2) VISIBLE,
CREATE_ID VARCHAR2(20 BYTE) VISIBLE,
CREATE_NAME VARCHAR2(100 CHAR) VISIBLE,
CREATE_DATE DATE VISIBLE,
UPDATE_ID VARCHAR2(20 BYTE) VISIBLE,
UPDATE_DATE DATE VISIBLE,
ORG_ID VARCHAR2(20 BYTE) VISIBLE,
FIRST_WEIGHT NUMBER(14,3) VISIBLE,
FIRST_AMOUNT NUMBER(14,3) VISIBLE,
RULE_DES VARCHAR2(50 BYTE) VISIBLE
);

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.ID IS 'ID';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.CARRIER_ORG_ID IS '?????';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.CARRIER_ORG_NAME IS '?????';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.DEPARTURE_CITY IS '????';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.DESTINATION_CITY IS '????';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.COMMITMENT_TIME IS '????';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.MILEAGE IS '??';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.CREATE_ID IS '???ID';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.CREATE_NAME IS '?????';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.CREATE_DATE IS '????';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.UPDATE_ID IS '???';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.UPDATE_DATE IS '????';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.ORG_ID IS '??ID';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.FIRST_WEIGHT IS '??';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.FIRST_AMOUNT IS '????';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA.RULE_DES IS '????';

COMMENT ON TABLE T_LOGISTICS_BASICDATA IS '???????';

-- ----------------------------
-- Table structure for T_LOGISTICS_BASICDATA_WEIGHT
-- ----------------------------
CREATE TABLE T_LOGISTICS_BASICDATA_WEIGHT (
ID VARCHAR2(20 BYTE) VISIBLE NOT NULL,
BASIC_ID VARCHAR2(20 BYTE) VISIBLE,
UNIT_PRICE NUMBER(14,3) VISIBLE,
WEIGHT_START NUMBER(14,3) VISIBLE,
WEIGHT_END NUMBER(14,3) VISIBLE,
ADDITIONAL NUMBER(14,3) VISIBLE
);

COMMENT ON COLUMN T_LOGISTICS_BASICDATA_WEIGHT.ID IS 'ID';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA_WEIGHT.BASIC_ID IS '??????ID';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA_WEIGHT.UNIT_PRICE IS '??';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA_WEIGHT.WEIGHT_START IS '??????';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA_WEIGHT.WEIGHT_END IS '??????';

COMMENT ON COLUMN T_LOGISTICS_BASICDATA_WEIGHT.ADDITIONAL IS '??';

COMMENT ON TABLE T_LOGISTICS_BASICDATA_WEIGHT IS '?????????';


